Loading src/posix/socket.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,7 @@ void netplus::socket::copyAddrInfo(ULONG_PTR* dest, ULONG_PTR src, size_t){ _AddrLen = (socklen_t)s->ai_addrlen; } bool netplus::isIPAddr(const std::string &host) { bool isIPAddr(const std::string &host) { if (host.empty()) return false; struct in_addr v4; if (inet_pton(AF_INET, host.c_str(), &v4) == 1) return true; Loading src/windows/socket.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ namespace netplus { } } bool netplus::isIPAddr(const std::string &host) { bool isIPAddr(const std::string &host) { if (host.empty()) return false; struct in_addr v4; if (inet_pton(AF_INET, host.c_str(), &v4) == 1) return true; Loading Loading
src/posix/socket.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,7 @@ void netplus::socket::copyAddrInfo(ULONG_PTR* dest, ULONG_PTR src, size_t){ _AddrLen = (socklen_t)s->ai_addrlen; } bool netplus::isIPAddr(const std::string &host) { bool isIPAddr(const std::string &host) { if (host.empty()) return false; struct in_addr v4; if (inet_pton(AF_INET, host.c_str(), &v4) == 1) return true; Loading
src/windows/socket.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -221,7 +221,7 @@ namespace netplus { } } bool netplus::isIPAddr(const std::string &host) { bool isIPAddr(const std::string &host) { if (host.empty()) return false; struct in_addr v4; if (inet_pton(AF_INET, host.c_str(), &v4) == 1) return true; Loading