From a361a0bbc980a44e775c868b34d6c01f545a8515 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Aug 2006 10:39:42 +0000 Subject: IPV6 compile fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4696 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cgiirc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index dea13d114..3a1bccaf7 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -245,7 +245,7 @@ public: strlcpy(user->dhost, user->password, 64); #ifdef IPV6 - if (insp_aton(user->password, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin6_addr)) + if (insp_aton(user->password, (insp_inaddr*)&((sockaddr_in6*)&user->ip)->sin6_addr)) #else if (insp_aton(user->password, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin_addr)) #endif @@ -311,7 +311,7 @@ public: user->Extend("cgiirc_realhost", new std::string(user->host)); user->Extend("cgiirc_realip", new std::string(user->GetIPString())); #ifdef IPV6 - insp_aton(newip, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin6_addr); + insp_aton(newip, (insp_inaddr*)&((sockaddr_in6*)&user->ip)->sin6_addr); #else insp_aton(newip, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin_addr); #endif -- cgit v1.2.3