summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-30 17:37:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-30 17:37:13 +0000
commit2779810ff0d1b66f0fca1a62d6164d70f5c86d06 (patch)
tree101caa8c28e64e6580d6674eb93e8d349673df21 /src/dns.cpp
parentc9235e50f471e5071c0601dde62bb741d9b6f05c (diff)
Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 49cfa3f1f..99b156bf1 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -651,14 +651,11 @@ DNSResult DNS::GetResult()
port_from = ntohs(((sockaddr_in6*)from)->sin6_port);
}
else
+#endif
{
ipaddr_from = inet_ntoa(((sockaddr_in*)from)->sin_addr);
port_from = ntohs(((sockaddr_in*)from)->sin_port);
}
-#else
- ipaddr_from = inet_ntoa(((sockaddr_in*)from)->sin_addr);
- port_from = ntohs(((sockaddr_in*)from)->sin_port);
-#endif
delete[] from;