aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
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/m_ident.cpp
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/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index a3b77010b..9c338c0e9 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -324,7 +324,7 @@ public:
}
// The ident protocol requires that clients are connecting over a protocol with ports.
- if (user->client_sa.family() != AF_INET && user->client_sa.family() != AF_INET6)
+ if (!user->client_sa.is_ip())
return;
// We don't want to look this up once the user has connected.