diff --git a/magneticod/magneticod/dht.py b/magneticod/magneticod/dht.py index 8362d34..5fd1559 100644 --- a/magneticod/magneticod/dht.py +++ b/magneticod/magneticod/dht.py @@ -73,6 +73,10 @@ class SybilNode: data = buffer.tobytes() except BlockingIOError: break + except ConnectionResetError: + continue + except ConnectionRefusedError: + continue # Ignore nodes that uses port 0 (assholes). if addr[1] == 0: