Don't reset broken ssl client list on cleanup

This commit is contained in:
shortcutme 2019-03-29 02:28:46 +01:00
parent 73524d70dc
commit b814a633c6
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 2 additions and 1 deletions

View file

@ -346,6 +346,8 @@ class Connection(object):
# No TLS for onion connections
if self.ip_type == "onion":
crypt_supported = []
elif self.ip in self.server.broken_ssl_ips:
crypt_supported = []
else:
crypt_supported = CryptConnection.manager.crypt_supported
# No peer id for onion connections

View file

@ -231,7 +231,6 @@ class ConnectionServer(object):
run_i += 1
time.sleep(15) # Check every minute
self.ip_incoming = {} # Reset connected ips counter
self.broken_ssl_ips = {} # Reset broken ssl peerids count
last_message_time = 0
s = time.time()
for connection in self.connections[:]: # Make a copy