mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Replace ChanType.sepfds with Channel.bidir_fd
This handles the case where a svrchansess has separate FDs for nopty, but a single FD for pty mode. The use of sepfds was also previously incorrect for X11 and agent forwarding
This commit is contained in:
@@ -59,7 +59,6 @@ static int newtcpdirect(struct Channel * channel);
|
||||
|
||||
#if DROPBEAR_SVR_REMOTETCPFWD
|
||||
static const struct ChanType svr_chan_tcpremote = {
|
||||
1, /* sepfds */
|
||||
"forwarded-tcpip",
|
||||
tcp_prio_inithandler,
|
||||
NULL,
|
||||
@@ -241,7 +240,6 @@ out:
|
||||
#if DROPBEAR_SVR_LOCALTCPFWD
|
||||
|
||||
const struct ChanType svr_chan_tcpdirect = {
|
||||
1, /* sepfds */
|
||||
"direct-tcpip",
|
||||
newtcpdirect, /* init */
|
||||
NULL, /* checkclose */
|
||||
|
||||
Reference in New Issue
Block a user