summaryrefslogtreecommitdiffhomepage
path: root/svr-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-02-22 14:52:46 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-02-22 14:52:46 +0000
commit66643fa5c723da2dc781c5eeae2e008c280a7b1c (patch)
tree21d9ce432008058719e04ea3d346fff2e5c38220 /svr-main.c
parent46d53c37fa27994d17646e5eb922678a7ed4b3e7 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-main.c b/svr-main.c
index e06eb5e..13a4ebf 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -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);