diff options
| author | 2007-02-03 20:11:51 +0000 | |
|---|---|---|
| committer | 2007-02-03 20:11:51 +0000 | |
| commit | 36244c4ddfdf9dc4196dacb2c2f2159609973b20 (patch) | |
| tree | 8df6d18897e9d1549250eb7947c015cc53ca1dbb /src/modules/m_dnsbl.cpp | |
| parent | On ipv6 servers, if a user connects with 4in6 (0::ffff:...) then attempt a dn... (diff) | |
Make this work on ancient gcc's
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6485 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 6ea05e6fa..2eae637b1 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -278,7 +278,7 @@ class ModuleDNSBL : public Module /* We could have an ipv6 address here */ std::string x = user->GetIPString(); /* Is it a 4in6 address? (Compensate for this kernel kludge that people love) */ - if (x.find("0::ffff:") == x.begin()) + if (x.find("0::ffff:") == 0) { x.erase(x.begin(), x.begin() + 8); if (inet_aton(x.c_str(), &in)) |
