From 443b2954e43f48157deb048e88f5522d80293cf6 Mon Sep 17 00:00:00 2001 From: Nidhi Agarwal Date: Thu, 21 Nov 2019 13:57:03 +0530 Subject: [PATCH] handle without port ip address validation --- src/ClusterNodesParser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClusterNodesParser.h b/src/ClusterNodesParser.h index 340b9ad..cb17d14 100644 --- a/src/ClusterNodesParser.h +++ b/src/ClusterNodesParser.h @@ -62,7 +62,7 @@ public: return false; } - const char* host = ""; + const char* host = mAddr; const char* port = strrchr(mAddr, ':'); if (port) { std::string tmp;