- if (myAddr.i != htonl(INADDR_LOOPBACK))
- {
- if (myAddr.i == htonl(INADDR_LOOPBACK))
- sprintf(my_tcpip_address, "INADDR_LOOPBACK");
- else if (myAddr.i == htonl(INADDR_ANY))
- sprintf(my_tcpip_address, "INADDR_ANY");
- else
- sprintf(my_tcpip_address, "%d.%d.%d.%d", myAddr.d[0], myAddr.d[1], myAddr.d[2], myAddr.d[3]);
- Con_Printf("UDP_Init: Binding to IP Interface Address of %s... ", my_tcpip_address);
- if ((net_controlsocket = UDP_OpenSocket (0)) == -1)
- Con_Printf("failed\n");
- else
- Con_Printf("succeeded\n");
- }
+ if (myAddr.i == htonl(INADDR_LOOPBACK))
+ sprintf(my_tcpip_address, "INADDR_LOOPBACK");
+ else if (myAddr.i == htonl(INADDR_ANY))
+ sprintf(my_tcpip_address, "INADDR_ANY");
+ else if (myAddr.i == htonl(INADDR_NONE))
+ sprintf(my_tcpip_address, "INADDR_NONE");
+ else
+ sprintf(my_tcpip_address, "%d.%d.%d.%d", myAddr.d[0], myAddr.d[1], myAddr.d[2], myAddr.d[3]);
+ Con_Printf("UDP_Init: Binding to IP Interface Address of %s... ", my_tcpip_address);
+ if ((net_controlsocket = UDP_OpenSocket (0)) == -1)
+ Con_Printf("failed\n");
+ else
+ Con_Printf("succeeded\n");