Skip to content

Commit

Permalink
Rev3851, Fix typo with onion address detection
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Feb 16, 2019
1 parent e89cb4c commit 952a1a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Config(object):

def __init__(self, argv):
self.version = "0.6.5"
self.rev = 3850
self.rev = 3851
self.argv = argv
self.action = None
self.pending_changes = {}
Expand Down
4 changes: 2 additions & 2 deletions src/Connection/Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def handleStream(self, message, unpacker, buff, unpacker_bytes):
# My handshake info
def getHandshakeInfo(self):
# No TLS for onion connections
if self.ip_type == ".onion":
if self.ip_type == "onion":
crypt_supported = []
else:
crypt_supported = CryptConnection.manager.crypt_supported
Expand Down Expand Up @@ -390,7 +390,7 @@ def setHandshake(self, handshake):

# Check if we can encrypt the connection
if handshake.get("crypt_supported") and self.ip not in self.server.broken_ssl_ips:
if self.ip_type == ".onion" or self.ip in config.ip_local:
if self.ip_type == "onion" or self.ip in config.ip_local:
crypt = None
elif handshake.get("crypt"): # Recommended crypt by server
crypt = handshake["crypt"]
Expand Down

0 comments on commit 952a1a1

Please sign in to comment.