Mercurial > hg > openttd
changeset 8826:7532ee3295c9 draft
(svn r12574) -Fix: binding to a specific IP could cause OpenTTD to not register properly with the masterserver if one has multiple external interfaces.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 04 Apr 2008 21:09:28 +0000 |
parents | 1603ed357fcb |
children | 095c429c5fa7 |
files | src/network/network_udp.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_udp.cpp +++ b/src/network/network_udp.cpp @@ -519,7 +519,7 @@ /* 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 @@ /* 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) {