diff options
Diffstat (limited to 'lib/ssh/src/ssh_tcpip_forward_acceptor.erl')
-rw-r--r-- | lib/ssh/src/ssh_tcpip_forward_acceptor.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_tcpip_forward_acceptor.erl b/lib/ssh/src/ssh_tcpip_forward_acceptor.erl index 60a0a7a0e1..6f2fda2bf9 100644 --- a/lib/ssh/src/ssh_tcpip_forward_acceptor.erl +++ b/lib/ssh/src/ssh_tcpip_forward_acceptor.erl @@ -79,6 +79,9 @@ acceptor_loop(LSock, ListenAddrStr, ListenPort, ConnectToAddr, ChanType, ChanCB, case ConnectToAddr of undefined -> <<?STRING(ListenAddrStr), ?UINT32(ListenPort), + ?STRING(RemHostBin), ?UINT32(RemPort)>>; + {ConnectToHost, ConnectToPort} -> + <<?STRING(ConnectToHost), ?UINT32(ConnectToPort), ?STRING(RemHostBin), ?UINT32(RemPort)>> end, case ssh_connection:open_channel(ConnPid, ChanType, Data, infinity) of |