From 8ec471a3fe6abbeae9ebf3c42901bbab1a8e06ef Mon Sep 17 00:00:00 2001 From: namsic Date: Wed, 26 Oct 2022 11:07:30 +0900 Subject: [PATCH] FIX: Use the second ip when it is 127.0.0.1 --- arcus_zk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arcus_zk.c b/arcus_zk.c index d3dac44ed..ab9eed611 100644 --- a/arcus_zk.c +++ b/arcus_zk.c @@ -1188,8 +1188,7 @@ static int get_zk_client_ipport(char *startp, char *endp, char *buf) { clientp++; colonp = memchr(clientp, ':', endp - clientp); - if (colonp && strncmp(clientp, "0.0.0.0", colonp - clientp) != 0 - && strncmp(clientp, "127.0.0.1", colonp - clientp) != 0) { + if (colonp && strncmp(clientp, "0.0.0.0", colonp - clientp) != 0) { memcpy(buf, clientp, endp - clientp); return endp - clientp; }