fixed bug in network service status check
[public/netxms.git] / src / server / core / netsrv.cpp
index 40f3eb3..b1d3ca8 100644 (file)
@@ -357,7 +357,7 @@ void NetworkService::statusPoll(ClientSession *session, UINT32 rqId, Node *polle
       sendPollerMsg(rqId, _T("      Polling service from node %s [%s]\r\n"),
                     pNode->getName(), pNode->getIpAddress().toString(szBuffer));
       if (pNode->checkNetworkService(&dwStatus,
-                                     m_ipAddress.isValid() ? m_ipAddress : m_hostNode->getIpAddress(),
+                                     m_ipAddress.isValidUnicast() ? m_ipAddress : m_hostNode->getIpAddress(),
                                      m_serviceType, m_port, m_proto,
                                      m_request, m_response, &m_responseTime) == ERR_SUCCESS)
       {