Commit 1ce11d50 authored by aligungr's avatar aligungr

IPv6 support

parent bfcd7481
...@@ -88,9 +88,8 @@ int InetAddress::getIpVersion() const ...@@ -88,9 +88,8 @@ int InetAddress::getIpVersion() const
{ {
if (storage.ss_family == AF_INET) if (storage.ss_family == AF_INET)
return 4; return 4;
else if (storage.ss_family == AF_INET6) if (storage.ss_family == AF_INET6)
return 6; return 6;
else
return 0; return 0;
} }
......
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