use string instead of pointor

This commit is contained in:
Nidhi Agarwal 2019-11-21 21:36:21 +05:30
parent 443b2954e4
commit c06b1a7e31

View File

@ -62,7 +62,7 @@ public:
return false;
}
const char* host = mAddr;
const char* host = mAddr.data();
const char* port = strrchr(mAddr, ':');
if (port) {
std::string tmp;