Mercurial > dropbear
diff svr-main.c @ 434:0aaaf68e97dc
Add -p [address:]port option for binding to addresses, patch from
Max-Gerd Retzlaff
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 22 Feb 2007 14:52:46 +0000 |
parents | 94ee16f5b8a8 |
children | 337c45621e81 |
line wrap: on
line diff
--- a/svr-main.c Thu Mar 09 15:03:22 2006 +0000 +++ b/svr-main.c Thu Feb 22 14:52:46 2007 +0000 @@ -397,9 +397,9 @@ 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);