summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-14 23:40:16 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-14 23:40:16 +0000
commitd558e37d375abe8a625ba89754c59990b89cf33f (patch)
tree5a84964201ec29c9c9e49d42875dcd9d42fe3be0 /src
parentc88afe5b9abba09b883d59f46a7e2795df181394 (diff)
IPv6 fix, thanks to danieldg. Doesn't affect 1.1.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8709 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspsocket.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index f0e8dfbb2..0e8744d17 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -625,9 +625,14 @@ bool BufferedSocket::Poll()
}
else
#endif
+ {
+ // FIX: we were doing this for IPv6 connections as well, which was fucking recvip..
+ // Add brackets to make this a bit clearer. -- w00t (Jan 15, 2008)
+ recvip = inet_ntoa(((sockaddr_in*)client)->sin_addr);
+ }
+
Instance->SE->NonBlocking(incoming);
- recvip = inet_ntoa(((sockaddr_in*)client)->sin_addr);
this->OnIncomingConnection(incoming, (char*)recvip.c_str());
if (this->IsIOHooked)