summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
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;