diff options
author | houseofkodai <karthik@houseofkodai.in> | 2017-05-01 08:26:15 +0530 |
---|---|---|
committer | houseofkodai <karthik@houseofkodai.in> | 2017-05-01 08:26:15 +0530 |
commit | 01f13031a395f98643eb5156954c4dd93638bba7 (patch) | |
tree | 9cad9b8910fc23affd62b32bf0a930c57731196f /cli-main.c | |
parent | e543e2145c660e7178230e9ed3dc3ea3acd1f47c (diff) | |
download | dropbear-01f13031a395f98643eb5156954c4dd93638bba7.tar.gz |
cli_bind_address_connect
* replaces -b dummy option in dbclient to be similar with openssh -b option
* useful in multi-wan connections
Diffstat (limited to 'cli-main.c')
-rw-r--r-- | cli-main.c | 6 |
1 files changed, 3 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'", cli_opts.username, + cli_opts.remotehost, cli_opts.remoteport, cli_opts.bind_address)) if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) { dropbear_exit("signal() error"); @@ -86,7 +86,7 @@ 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); sock_in = sock_out = -1; } |