Commit 3bef1e6b authored by Davis King's avatar Davis King

Changed hostname_to_ip() to filter out 0.0.0.0 from the result set since

sometimes getaddrinfo() returns that which is bad.
parent 3eae0bcb
......@@ -120,7 +120,7 @@ namespace dlib
result = result->ai_next;
ip.assign(temp);
if (sos.is_member(ip) == false)
if (sos.is_member(ip) == false && ip != "0.0.0.0")
sos.add(ip);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment