diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-01-26 00:32:39 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-01-26 00:32:39 +0800 |
commit | b65354d2375affd3032c94c372b0cc74cb4acedc (patch) | |
tree | ffad8dc3321a7f3b60bef90a7d27ff504222711f /cli-main.c | |
parent | 917722257d11ea7a33990c170542aeff2b6061b1 (diff) | |
parent | e4ac7ea1ca910e0d245232a8ab16415f252b006b (diff) |
Merge branch 'houseofkodai-cli_bind_address_connect'
Diffstat (limited to 'cli-main.c')
-rw-r--r-- | cli-main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -66,8 +66,8 @@ int main(int argc, char ** argv) { } #endif - TRACE(("user='%s' host='%s' port='%s'", cli_opts.username, - cli_opts.remotehost, cli_opts.remoteport)) + TRACE(("user='%s' host='%s' port='%s' bind_address='%s' bind_port='%s'", cli_opts.username, + cli_opts.remotehost, cli_opts.remoteport, cli_opts.bind_address, cli_opts.bind_port)) if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { dropbear_exit("signal() error"); @@ -86,7 +86,8 @@ int main(int argc, char ** argv) { } else #endif { - progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, &ses); + progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, + cli_connected, &ses, cli_opts.bind_address, cli_opts.bind_port); sock_in = sock_out = -1; } |