1
0
Fork 0

(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.
release/0.4.5
truelight 2004-12-24 08:54:00 +00:00
parent 7e0f47ff15
commit c5cca49117
1 changed files with 2 additions and 2 deletions

View File

@ -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) */