aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra
diff options
context:
space:
mode:
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.