comparison svr-tcpfwd.c @ 1466:f787f60f8e45

bind to port as well with -b
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jan 2018 00:27:48 +0800
parents f7a53832501d
children 2d450c1056e3
comparison
equal deleted inserted replaced
1465:f7a53832501d 1466:f787f60f8e45
283 TRACE(("leave newtcpdirect: port > 65535")) 283 TRACE(("leave newtcpdirect: port > 65535"))
284 goto out; 284 goto out;
285 } 285 }
286 286
287 snprintf(portstring, sizeof(portstring), "%u", destport); 287 snprintf(portstring, sizeof(portstring), "%u", destport);
288 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel, NULL); 288 channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel, NULL, NULL);
289 289
290 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; 290 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
291 291
292 err = SSH_OPEN_IN_PROGRESS; 292 err = SSH_OPEN_IN_PROGRESS;
293 293