diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-04-26 19:08:39 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-04-26 19:08:43 -0500 |
commit | dc203f9f201e5a49677d3982f0b6c7d8610cc484 (patch) | |
tree | bd8b210c43ff5ac16167e56d76589425a5428cab /src/dns.cpp | |
parent | 1ac8c54574d2d68674ce0f3a5b15dce5d330049b (diff) |
Define comparator for irc::sockets::sockaddrs
This only compares IP/port, which ignores IPv6 flow information and
scope ID, which aren't important in testing for equality.
Diffstat (limited to 'src/dns.cpp')
-rw-r--r-- | src/dns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index ef9ac12bf..945e1fb15 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -578,7 +578,7 @@ DNSResult DNS::GetResult() * * -- Thanks jilles for pointing this one out. */ - if (memcmp(&from, &myserver, sizeof(irc::sockets::sockaddrs))) + if (from != myserver) { ServerInstance->Logs->Log("RESOLVER",DEBUG,"Got a result from the wrong server! Bad NAT or DNS forging attempt? '%s' != '%s'", from.str().c_str(), myserver.str().c_str()); |