aboutsummaryrefslogtreecommitdiffstats
path: root/src/coremods
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-17 02:46:53 +0000
committerGravatar Sadie Powell2023-01-17 02:46:53 +0000
commitdad3eaa2da71e3433afbd4e4a28f74e5de5663d4 (patch)
tree4f44f6404fdaec3da77490664ae7ebd45e78300d /src/coremods
parentAllow creating a FailedPort without a bindspec. (diff)
Add a helper method for determining if a sockaddrs is an IP endpoint.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_hostname_lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp
index 756236897..03df7c94e 100644
--- a/src/coremods/core_hostname_lookup.cpp
+++ b/src/coremods/core_hostname_lookup.cpp
@@ -219,7 +219,7 @@ public:
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)
+ if (!user->client_sa.is_ip())
return;
user->WriteNotice("*** Looking up your hostname...");