diff options
| author | 2023-01-17 02:46:53 +0000 | |
|---|---|---|
| committer | 2023-01-17 02:46:53 +0000 | |
| commit | dad3eaa2da71e3433afbd4e4a28f74e5de5663d4 (patch) | |
| tree | 4f44f6404fdaec3da77490664ae7ebd45e78300d /src/coremods | |
| parent | Allow 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.cpp | 2 |
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..."); |
