mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Fix warning about UNIX socket connections being insecure.
This commit is contained in:
parent
33c08fc8aa
commit
3ac6d92316
@ -141,7 +141,8 @@ Link* TreeSocket::AuthRemote(const CommandBase::Params& params)
|
||||
ssliohook->GetCiphersuite(ciphersuite);
|
||||
ServerInstance->SNO->WriteToSnoMask('l', "Negotiated ciphersuite %s on link %s", ciphersuite.c_str(), x->Name.c_str());
|
||||
}
|
||||
else if (!irc::sockets::cidr_mask("127.0.0.0/8").match(capab->remotesa) && !irc::sockets::cidr_mask("::1/128").match(capab->remotesa))
|
||||
else if ((capab->remotesa.family() == AF_INET && !irc::sockets::cidr_mask("127.0.0.0/8").match(capab->remotesa))
|
||||
|| (capab->remotesa.family() == AF_INET6 && !irc::sockets::cidr_mask("::1/128").match(capab->remotesa)))
|
||||
{
|
||||
ServerInstance->SNO->WriteGlobalSno('l', "Server connection to %s is not using SSL (TLS). This is VERY INSECURE and will not be allowed in the next major version of InspIRCd.", x->Name.c_str());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user