comparison svr-main.c @ 258:306499676384

* add -g (dbclient) and -a (dropbear) options for allowing non-local hosts to connect to forwarded ports. Rearranged various some of the tcp listening code. * changed to /* */ style brackets in svr-authpam.c
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Dec 2005 16:13:11 +0000
parents c5d3ef11155f
children 3be7ae2e8dfa 044bc108b9b3 740e782679be
comparison
equal deleted inserted replaced
257:63601217f5ab 258:306499676384
373 373
374 for (i = 0; i < svr_opts.portcount; i++) { 374 for (i = 0; i < svr_opts.portcount; i++) {
375 375
376 TRACE(("listening on '%s'", svr_opts.ports[i])) 376 TRACE(("listening on '%s'", svr_opts.ports[i]))
377 377
378 nsock = dropbear_listen(NULL, svr_opts.ports[i], &sock[sockpos], 378 nsock = dropbear_listen("", svr_opts.ports[i], &sock[sockpos],
379 sockcount - sockpos, 379 sockcount - sockpos,
380 &errstring, maxfd); 380 &errstring, maxfd);
381 381
382 if (nsock < 0) { 382 if (nsock < 0) {
383 dropbear_log(LOG_WARNING, "Failed listening on '%s': %s", 383 dropbear_log(LOG_WARNING, "Failed listening on '%s': %s",