From 11dd5049fe13c2bc32083f079797338c83640d9b Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 6 Oct 2018 08:11:31 +0200 Subject: [PATCH] Fix MITM warning. --- src/drivers/Socket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/Socket.py b/src/drivers/Socket.py index c9e9d19fe..34e4881d5 100644 --- a/src/drivers/Socket.py +++ b/src/drivers/Socket.py @@ -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 '