From 0c1916945a52232d46b4661339e7eed2ce3e665d Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Aug 2006 15:15:09 +0000 Subject: Fix sockaddr structs for ipv6 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4672 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3