mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fix MITM warning.
This commit is contained in:
parent
9ba21a1cad
commit
11dd5049fe
@ -292,6 +292,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
# Backported Python 2 ipaddress demands unicode instead of str
|
||||
targetip = targetip.decode('utf-8')
|
||||
elif (not network_config.requireStarttls()) and \
|
||||
(not network_config.ssl()) and \
|
||||
(ipaddress is None or not ipaddress.ip_address(targetip).is_loopback):
|
||||
drivers.log.warning(('Connection to network %s '
|
||||
'does not use SSL/TLS, which makes it vulnerable to '
|
||||
|
Loading…
Reference in New Issue
Block a user