aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra
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/modules/extra
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/modules/extra')
-rw-r--r--src/modules/extra/m_geo_maxmind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_geo_maxmind.cpp b/src/modules/extra/m_geo_maxmind.cpp
index 3cc6ac5f4..b4df78225 100644
--- a/src/modules/extra/m_geo_maxmind.cpp
+++ b/src/modules/extra/m_geo_maxmind.cpp
@@ -110,7 +110,7 @@ public:
Geolocation::Location* GetLocation(irc::sockets::sockaddrs& sa) override
{
// Skip trying to look up a UNIX socket.
- if (sa.family() != AF_INET && sa.family() != AF_INET6)
+ if (!sa.is_ip())
return nullptr;
// Attempt to look up the socket address.