mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
use string instead of pointor
This commit is contained in:
parent
443b2954e4
commit
c06b1a7e31
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user