diff options
author | Peter Powell <petpow@saberuk.com> | 2019-01-23 14:59:34 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-01-23 15:16:07 +0000 |
commit | 997e570fe4f609efbdc95a277286ccbba866a00d (patch) | |
tree | 9ddc217606789fce2f8f4cf3c7d106d18a5e9243 /src | |
parent | 5394adf41ff609f7f97af529774fcb616fe072b2 (diff) |
Don't tell the user if DNS lookups are disabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_hostname_lookup.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp index ec93732b1..85d0f530c 100644 --- a/src/coremods/core_hostname_lookup.cpp +++ b/src/coremods/core_hostname_lookup.cpp @@ -193,18 +193,14 @@ class ModuleHostnameLookup : public Module void OnSetUserIP(LocalUser* user) CXX11_OVERRIDE { + // If core_dns is not loaded or hostname resolution is disabled for the user's + // connect class then the logic in this function does not apply. if (!DNS || !user->MyClass->resolvehostnames) - { - user->WriteNotice("*** Skipping host resolution (disabled by server administrator)"); return; - } // Clients can't have a DNS hostname if they aren't connected via IPv4 or IPv6. if (user->client_sa.family() != AF_INET && user->client_sa.family() != AF_INET6) - { - user->WriteNotice("*** Skipping host resolution (connected via a non-IP socket)"); return; - } user->WriteNotice("*** Looking up your hostname..."); |