summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 15:15:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-03 15:15:09 +0000
commit0c1916945a52232d46b4661339e7eed2ce3e665d (patch)
tree28e51a2cc931b55b8006c0e6361bed4827538227
parentdd9112f8cb593a166b683e75aceff38cb386f9ee (diff)
Fix sockaddr structs for ipv6
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4672 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/dns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index 813c33030..1ce68f186 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -416,8 +416,8 @@ DNSResult DNS::GetResult()
* -- Thanks jilles for pointing this one out.
*/
#ifdef IPV6
- ipaddr_from = insp_ntoa(((sockaddr_in*)&from)->sin6_addr);
- port_from = ntohs(((sockaddr_in*)&from)->sin6_port);
+ ipaddr_from = insp_ntoa(((sockaddr_in6*)&from)->sin6_addr);
+ port_from = ntohs(((sockaddr_in6*)&from)->sin6_port);
#else
ipaddr_from = insp_ntoa(((sockaddr_in*)&from)->sin_addr);
port_from = ntohs(((sockaddr_in*)&from)->sin_port);