diff options
author | Matt Johnston <matt@ucc.asn.au> | 2007-02-22 14:52:46 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2007-02-22 14:52:46 +0000 |
commit | 66643fa5c723da2dc781c5eeae2e008c280a7b1c (patch) | |
tree | 21d9ce432008058719e04ea3d346fff2e5c38220 /svr-main.c | |
parent | 46d53c37fa27994d17646e5eb922678a7ed4b3e7 (diff) |
Add -p [address:]port option for binding to addresses, patch from
Max-Gerd Retzlaff
--HG--
extra : convert_revision : a9b0496634cdd25647b65e585cc3240f3fa699ee
Diffstat (limited to 'svr-main.c')
-rw-r--r-- | svr-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -397,9 +397,9 @@ static size_t listensockets(int *sock, size_t sockcount, int *maxfd) { for (i = 0; i < svr_opts.portcount; i++) { - TRACE(("listening on '%s'", svr_opts.ports[i])) + TRACE(("listening on '%s:%s'", svr_opts.addresses[i], svr_opts.ports[i])) - nsock = dropbear_listen("", svr_opts.ports[i], &sock[sockpos], + nsock = dropbear_listen(svr_opts.addresses[i], svr_opts.ports[i], &sock[sockpos], sockcount - sockpos, &errstring, maxfd); |