mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Clone counting works with ipv6 now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4621 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
145862efc7
commit
cf2836550f
@ -182,14 +182,14 @@ class cmd_check : public command_t
|
|||||||
for (user_hash::const_iterator a = clientlist.begin(); a != clientlist.end(); a++)
|
for (user_hash::const_iterator a = clientlist.begin(); a != clientlist.end(); a++)
|
||||||
{
|
{
|
||||||
#ifdef IPV6
|
#ifdef IPV6
|
||||||
/* TODO: Clone matching for IPV6 ips */
|
if (!memcmp(addr.sin6_addr.s6_addr, a->second->ip4.s6_addr, sizeof(in6_addr)))
|
||||||
#else
|
#else
|
||||||
if (addr.sin_addr.s_addr == a->second->ip4.s_addr)
|
if (addr.sin_addr.s_addr == a->second->ip4.s_addr)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
/* same IP. */
|
/* same IP. */
|
||||||
Srv->SendTo(NULL, user, checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
|
Srv->SendTo(NULL, user, checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user