fixed bug when rx_hostname was an ip and using zmqsocket

This commit is contained in:
Dhanya Maliakal 2017-05-17 15:58:12 +02:00
parent cb008bb700
commit ea875a14f9

View File

@ -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)