From d145143e4b55abf28ab3f6c4991e930bfc703607 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Fri, 23 Sep 2022 08:44:55 +0300 Subject: [PATCH] Fix a mistake in Listener.run() --- minode/listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minode/listener.py b/minode/listener.py index 396e681..436d48c 100644 --- a/minode/listener.py +++ b/minode/listener.py @@ -26,12 +26,12 @@ class Listener(threading.Thread): break try: conn, addr = self.s.accept() - logging.info('Incoming connection from: %s:%i', *addr) + logging.info('Incoming connection from: %s:%i', *addr[:2]) with shared.connections_lock: if len(shared.connections) > shared.connection_limit: conn.close() else: - c = Connection(*addr, conn, server=True) + c = Connection(*addr[:2], conn, server=True) c.start() shared.connections.add(c) except socket.timeout: