diff options
Diffstat (limited to 'src/qcommon/net_ip.c')
-rw-r--r-- | src/qcommon/net_ip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qcommon/net_ip.c b/src/qcommon/net_ip.c index d7dc8b5f..b6a158ce 100644 --- a/src/qcommon/net_ip.c +++ b/src/qcommon/net_ip.c @@ -1287,6 +1287,8 @@ static void NET_GetLocalAddress(void) { struct ifaddrs *ifap, *search; + numIP = 0; + if(getifaddrs(&ifap)) Com_Printf("NET_GetLocalAddress: Unable to get list of network interfaces: %s\n", NET_ErrorString()); else @@ -1309,6 +1311,8 @@ static void NET_GetLocalAddress( void ) { struct addrinfo hint; struct addrinfo *res = NULL; + numIP = 0; + if(gethostname( hostname, 256 ) == SOCKET_ERROR) return; |