]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
IPv6 fix, thanks to danieldg. Doesn't affect 1.1.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 14 Jan 2008 23:40:16 +0000 (23:40 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 14 Jan 2008 23:40:16 +0000 (23:40 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8709 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspsocket.cpp

index f0e8dfbb224a4015f82bf7f019194adfe4f9ee0d..0e8744d175b89b71603543131bee4cdeac2ea398 100644 (file)
@@ -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)