From 7a672d42e4173e274ac0ee31331d41e45801facc Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:07:36 +0000 Subject: Remove more text<->binary IP conversions, making code more IPv4/IPv6 independent git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11578 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_connectban.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_connectban.cpp') diff --git a/src/modules/m_connectban.cpp b/src/modules/m_connectban.cpp index a00fc6733..ae464a16c 100644 --- a/src/modules/m_connectban.cpp +++ b/src/modules/m_connectban.cpp @@ -72,7 +72,7 @@ class ModuleConnectBan : public Module int range = 32; clonemap::iterator i; - switch (u->ip.sa.sa_family) + switch (u->client_sa.sa.sa_family) { case AF_INET6: range = ipv6_cidr; -- cgit v1.2.3