From ea875a14f970e4e939e2ab34d61814b0c2b29844 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Wed, 17 May 2017 15:58:12 +0200 Subject: [PATCH] fixed bug when rx_hostname was an ip and using zmqsocket --- slsReceiverSoftware/include/ZmqSocket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsReceiverSoftware/include/ZmqSocket.h b/slsReceiverSoftware/include/ZmqSocket.h index d7e437897..05a366e65 100644 --- a/slsReceiverSoftware/include/ZmqSocket.h +++ b/slsReceiverSoftware/include/ZmqSocket.h @@ -47,7 +47,7 @@ public: strcpy(ip, hostname_or_ip); // construct address - if (strchr (hostname_or_ip, '.') != NULL) { + if (strchr (hostname_or_ip, '.') == NULL) { // convert hostname to ip char* ptr = ConvertHostnameToIp (hostname_or_ip); if (ptr == NULL)