diff options
author | truelight <truelight@openttd.org> | 2004-12-24 08:54:00 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-24 08:54:00 +0000 |
commit | 9ec8692038fc3148054674d3bce66b6eeeab06da (patch) | |
tree | 82e8b7616e712c3f18b414032b554e1507640083 | |
parent | cd6691dbec1a08b7270c20c6826822c8802478fa (diff) | |
download | openttd-9ec8692038fc3148054674d3bce66b6eeeab06da.tar.xz |
(svn r1276) -Fix: [Network] Bug in bind system. Advertising failed on systems with
more then 1 ip, and server_bind active to one of them.
-rw-r--r-- | network_udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network_udp.c b/network_udp.c index 5f66df6e4..64e79d01c 100644 --- a/network_udp.c +++ b/network_udp.c @@ -535,7 +535,7 @@ void NetworkUDPRemoveAdvertise(void) /* check for socket */ if (_udp_master_socket == INVALID_SOCKET) - if (!NetworkUDPListen(&_udp_master_socket, 0, 0, false)) + if (!NetworkUDPListen(&_udp_master_socket, _network_server_bind_ip, 0, false)) return; DEBUG(net, 2)("[NET][UDP] Removing advertise.."); @@ -568,7 +568,7 @@ void NetworkUDPAdvertise(void) /* check for socket */ if (_udp_master_socket == INVALID_SOCKET) - if (!NetworkUDPListen(&_udp_master_socket, 0, 0, false)) + if (!NetworkUDPListen(&_udp_master_socket, _network_server_bind_ip, 0, false)) return; /* Only send once in the 450 game-days (about 15 minutes) */ |