mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Log when a user has an unknown socket type in User::GetCIDRMask.
This commit is contained in:
parent
c8e40cb7c4
commit
2366e56d43
@ -603,9 +603,18 @@ irc::sockets::cidr_mask User::GetCIDRMask() const
|
||||
case AF_INET6:
|
||||
range = ServerInstance->Config->IPv6Range;
|
||||
break;
|
||||
|
||||
case AF_INET:
|
||||
range = ServerInstance->Config->IPv4Range;
|
||||
break;
|
||||
|
||||
case AF_UNIX:
|
||||
break; // CIDR not supported.
|
||||
|
||||
default:
|
||||
ServerInstance->Logs.Debug("SOCKET", "BUG: User::GetCIDRMask(): socket type {} is unknown!",
|
||||
client_sa.family());
|
||||
break;
|
||||
}
|
||||
return irc::sockets::cidr_mask(client_sa, range);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user