Commit f712aa09 authored by jan.koester's avatar jan.koester
Browse files

test

parent 98bca8e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;