Skip to content

Commit 952a1a1

Browse files
committed
Rev3851, Fix typo with onion address detection
1 parent e89cb4c commit 952a1a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Config(object):
1313

1414
def __init__(self, argv):
1515
self.version = "0.6.5"
16-
self.rev = 3850
16+
self.rev = 3851
1717
self.argv = argv
1818
self.action = None
1919
self.pending_changes = {}

src/Connection/Connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def handleStream(self, message, unpacker, buff, unpacker_bytes):
333333
# My handshake info
334334
def getHandshakeInfo(self):
335335
# No TLS for onion connections
336-
if self.ip_type == ".onion":
336+
if self.ip_type == "onion":
337337
crypt_supported = []
338338
else:
339339
crypt_supported = CryptConnection.manager.crypt_supported
@@ -390,7 +390,7 @@ def setHandshake(self, handshake):
390390

391391
# Check if we can encrypt the connection
392392
if handshake.get("crypt_supported") and self.ip not in self.server.broken_ssl_ips:
393-
if self.ip_type == ".onion" or self.ip in config.ip_local:
393+
if self.ip_type == "onion" or self.ip in config.ip_local:
394394
crypt = None
395395
elif handshake.get("crypt"): # Recommended crypt by server
396396
crypt = handshake["crypt"]

0 commit comments

Comments
 (0)