Skip to content

Commit

Permalink
Merge pull request #654 from namsic/works-355-zkconfig
Browse files Browse the repository at this point in the history
FIX: Use the second ip when it is 127.0.0.1
  • Loading branch information
jhpark816 authored Oct 26, 2022
2 parents fd91c5a + 8ec471a commit acdd417
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arcus_zk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit acdd417

Please sign in to comment.