From dad3eaa2da71e3433afbd4e4a28f74e5de5663d4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 17 Jan 2023 02:46:53 +0000 Subject: Add a helper method for determining if a sockaddrs is an IP endpoint. --- src/modules/m_ident.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ident.cpp') 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. -- cgit v1.3.1-10-gc9f91