serverinfo ip binding fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1469 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-22 18:36:53 +00:00
parent c461707617
commit f261d257b7
3 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ void servermsinit(const char *master, char *ip, int infoport, char *sdesc, bool
if(listen)
{
ENetAddress address = { ENET_HOST_ANY, infoport };
if(*ip && enet_address_set_host(&msaddress, ip)<0) printf("WARNING: server ip not resolved");
if(*ip && enet_address_set_host(&address, ip)<0) printf("WARNING: server ip not resolved");
pongsock = enet_socket_create(ENET_SOCKET_TYPE_DATAGRAM, &address);
if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n");
else enet_socket_set_option(pongsock, ENET_SOCKOPT_NONBLOCK, 1);