fixed Windows build errors
[public/netxms.git] / src / nxcproxy / listener.cpp
index ec4e62e..d1b725a 100644 (file)
@@ -54,7 +54,7 @@ THREAD_RESULT THREAD_CALL ListenerThread(void *)
        }
        else
        {
-               servAddr.sin_addr.s_addr = ResolveHostName(g_listenAddress);
+      servAddr.sin_addr.s_addr = InetAddress::resolveHostName(g_listenAddress, AF_INET).getAddressV4();
                if (servAddr.sin_addr.s_addr == htonl(INADDR_NONE))
                        servAddr.sin_addr.s_addr = htonl(INADDR_ANY);
        }