From 7d8605f92c1237e75318e093447286e2ff657779 Mon Sep 17 00:00:00 2001 From: wens Date: Thu, 21 Aug 2008 02:59:46 +0000 Subject: *:xxx and :xxx should listen on INADDR_ANY git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4402 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- common/sys/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sys/net.c b/common/sys/net.c index 80566487..b1b0e965 100644 --- a/common/sys/net.c +++ b/common/sys/net.c @@ -146,7 +146,7 @@ int toconnect(const char *addr) assert(port && atoi(port) != 0); if (!buf[0] || buf[0] == '*') - serv_name.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + serv_name.sin_addr.s_addr = htonl(INADDR_ANY); else serv_name.sin_addr.s_addr = inet_addr(buf); -- cgit v1.2.3