summaryrefslogtreecommitdiff
path: root/network_udp.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-24 08:54:00 +0000
committertruelight <truelight@openttd.org>2004-12-24 08:54:00 +0000
commitc5cca491178919fa75871b27b0f6199c9d6394a7 (patch)
tree82e8b7616e712c3f18b414032b554e1507640083 /network_udp.c
parent7e0f47ff157e7018902f52ea1997e816eb3b25e6 (diff)
downloadopenttd-c5cca491178919fa75871b27b0f6199c9d6394a7.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.
Diffstat (limited to 'network_udp.c')
-rw-r--r--network_udp.c4
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) */