summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-04 21:09:28 +0000
committerrubidium <rubidium@openttd.org>2008-04-04 21:09:28 +0000
commite9661fb42054aa0a96579efe4ccc3a276619f12e (patch)
treecc1dab95bd2b84d39939b33c4646d8703797acd1 /src
parentfb379b522d90274def9fc1077577cd2a601a60b5 (diff)
downloadopenttd-e9661fb42054aa0a96579efe4ccc3a276619f12e.tar.xz
(svn r12574) -Fix: binding to a specific IP could cause OpenTTD to not register properly with the masterserver if one has multiple external interfaces.
Diffstat (limited to 'src')
-rw-r--r--src/network/network_udp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp
index 3ffe45f9b..2afe4e019 100644
--- a/src/network/network_udp.cpp
+++ b/src/network/network_udp.cpp
@@ -519,7 +519,7 @@ void NetworkUDPRemoveAdvertise()
/* check for socket */
if (!_udp_master_socket->IsConnected()) {
- if (!_udp_master_socket->Listen(0, 0, false)) return;
+ if (!_udp_master_socket->Listen(_network_server_bind_ip, 0, false)) return;
}
DEBUG(net, 1, "[udp] removing advertise from master server");
@@ -549,7 +549,7 @@ void NetworkUDPAdvertise()
/* check for socket */
if (!_udp_master_socket->IsConnected()) {
- if (!_udp_master_socket->Listen(0, 0, false)) return;
+ if (!_udp_master_socket->Listen(_network_server_bind_ip, 0, false)) return;
}
if (_network_need_advertise) {