summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-21 10:59:46 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-21 10:59:46 +0800
commit7d8605f92c1237e75318e093447286e2ff657779 (patch)
tree047aa4f19c4b5a1f8502048b8aa3b10fcae2c4bf
parentf35c59f6a97612b6b02dca7f1795c857440c2ae3 (diff)
downloadpttbbs-7d8605f92c1237e75318e093447286e2ff657779.tar
pttbbs-7d8605f92c1237e75318e093447286e2ff657779.tar.gz
pttbbs-7d8605f92c1237e75318e093447286e2ff657779.tar.bz2
pttbbs-7d8605f92c1237e75318e093447286e2ff657779.tar.lz
pttbbs-7d8605f92c1237e75318e093447286e2ff657779.tar.xz
pttbbs-7d8605f92c1237e75318e093447286e2ff657779.tar.zst
pttbbs-7d8605f92c1237e75318e093447286e2ff657779.zip
*:xxx and :xxx should listen on INADDR_ANY
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4402 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--common/sys/net.c2
1 files changed, 1 insertions, 1 deletions
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);