diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-01 17:14:04 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-04-01 17:14:04 +0000 |
commit | 05c0944bc22f16e24943a209429651e6226cc12c (patch) | |
tree | 14c08308cdac4a7ca578c776ff1fa7eb4582d0b7 /include | |
parent | fb76ed9be4df5ddbb95a8f45fda9de049d2ea2df (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/socket.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |