From e9661fb42054aa0a96579efe4ccc3a276619f12e Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Apr 2008 21:09:28 +0000 Subject: (svn r12574) -Fix: binding to a specific IP could cause OpenTTD to not register properly with the masterserver if one has multiple external interfaces. --- src/network/network_udp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2