mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 20:26:42 +01:00
fixed bug when rx_hostname was an ip and using zmqsocket
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
|||||||
strcpy(ip, hostname_or_ip);
|
strcpy(ip, hostname_or_ip);
|
||||||
|
|
||||||
// construct address
|
// construct address
|
||||||
if (strchr (hostname_or_ip, '.') != NULL) {
|
if (strchr (hostname_or_ip, '.') == NULL) {
|
||||||
// convert hostname to ip
|
// convert hostname to ip
|
||||||
char* ptr = ConvertHostnameToIp (hostname_or_ip);
|
char* ptr = ConvertHostnameToIp (hostname_or_ip);
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user