From 05c0944bc22f16e24943a209429651e6226cc12c Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 1 Apr 2009 17:14:04 +0000 Subject: Correct bind address of ident requests on multihomed IPv6-capable servers. Fixes bug #815, reported by Szymek. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11274 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socket.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/socket.h b/include/socket.h index 2fcb149b1..11c536ed7 100644 --- a/include/socket.h +++ b/include/socket.h @@ -46,6 +46,12 @@ namespace irc namespace sockets { + typedef union { + struct sockaddr sa; + struct sockaddr_in in4; + struct sockaddr_in6 in6; + } sockaddrs; + /* macros to the relevant system address description structs */ #ifdef IPV6 /** insp_sockaddr for ipv6 -- cgit v1.2.3