mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Socket: Silence TLS warning for Tor hidden services.
They are already end-to-end encrypted and don't need TLS.
This commit is contained in:
parent
69c948bd5f
commit
c8053dad54
@ -318,7 +318,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
|||||||
# address is a hostname, eg. because we're using a SOCKS
|
# address is a hostname, eg. because we're using a SOCKS
|
||||||
# proxy
|
# proxy
|
||||||
is_loopback = False
|
is_loopback = False
|
||||||
if not is_loopback:
|
if not is_loopback and not address.endswith('.onion'):
|
||||||
drivers.log.warning(('Connection to network %s '
|
drivers.log.warning(('Connection to network %s '
|
||||||
'does not use SSL/TLS, which makes it vulnerable to '
|
'does not use SSL/TLS, which makes it vulnerable to '
|
||||||
'man-in-the-middle attacks and passive eavesdropping. '
|
'man-in-the-middle attacks and passive eavesdropping. '
|
||||||
|
Loading…
Reference in New Issue
Block a user