summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-21 11:02:33 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-08-21 11:02:33 +0800
commitfa07d1dbd8d62ce2f7bd0e6166b9db26672ae496 (patch)
tree2341284ac4f6a9f629777058b2ce0f3763781a56
parent7d8605f92c1237e75318e093447286e2ff657779 (diff)
downloadpttbbs-fa07d1dbd8d62ce2f7bd0e6166b9db26672ae496.tar
pttbbs-fa07d1dbd8d62ce2f7bd0e6166b9db26672ae496.tar.gz
pttbbs-fa07d1dbd8d62ce2f7bd0e6166b9db26672ae496.tar.bz2
pttbbs-fa07d1dbd8d62ce2f7bd0e6166b9db26672ae496.tar.lz
pttbbs-fa07d1dbd8d62ce2f7bd0e6166b9db26672ae496.tar.xz
pttbbs-fa07d1dbd8d62ce2f7bd0e6166b9db26672ae496.tar.zst
pttbbs-fa07d1dbd8d62ce2f7bd0e6166b9db26672ae496.zip
revert last commit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4403 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 b1b0e965..80566487 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_ANY);
+ serv_name.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
else
serv_name.sin_addr.s_addr = inet_addr(buf);