X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/674c2f994705d3d722e4abeea8237d6e9af0b668..327ec384624ea69aa0e02f89d5513e31752fef90:/stglibs/common.lib/common.cpp?ds=inline diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp index 71246704..57b37bdf 100644 --- a/stglibs/common.lib/common.cpp +++ b/stglibs/common.lib/common.cpp @@ -415,7 +415,7 @@ for (int i = 0; i < maxIP; i++) } struct in_addr in; - if (!inet_aton(p1, &in)) + if (inet_pton(AF_INET, p1, &in) != 1) { //printf("INADDR_NONE\n"); return EINVAL;