diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-21 19:20:14 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-21 19:20:14 +0800 |
commit | 83b583891df1d6769f9db7255ba1be0865d9a11e (patch) | |
tree | 00c40931b27b75fd60fda3d6a4f1000495586038 /util | |
parent | 95ddd189cb243f4c0b99fbaf3178abf3ac5564e8 (diff) | |
download | pttbbs-83b583891df1d6769f9db7255ba1be0865d9a11e.tar pttbbs-83b583891df1d6769f9db7255ba1be0865d9a11e.tar.gz pttbbs-83b583891df1d6769f9db7255ba1be0865d9a11e.tar.bz2 pttbbs-83b583891df1d6769f9db7255ba1be0865d9a11e.tar.lz pttbbs-83b583891df1d6769f9db7255ba1be0865d9a11e.tar.xz pttbbs-83b583891df1d6769f9db7255ba1be0865d9a11e.tar.zst pttbbs-83b583891df1d6769f9db7255ba1be0865d9a11e.zip |
bind xchatd to localhost only
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2669 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/xchatd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xchatd.c b/util/xchatd.c index 4051b3d0..d0b4cad4 100644 --- a/util/xchatd.c +++ b/util/xchatd.c @@ -2707,7 +2707,7 @@ start_daemon() memset((char *) &fsin, 0, sizeof(fsin)); fsin.sin_family = AF_INET; fsin.sin_port = htons(NEW_CHATPORT); - fsin.sin_addr.s_addr = htonl(INADDR_ANY); + fsin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); if (bind(fd, (struct sockaddr *) & fsin, sizeof(fsin)) < 0) exit(1); |