From d558e37d375abe8a625ba89754c59990b89cf33f Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 14 Jan 2008 23:40:16 +0000 Subject: [PATCH] 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 --- src/inspsocket.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.5