From 6c6f1f9c2bcc7eaff789065a111f7387860e522c Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 11 Feb 2019 20:34:15 +0000 Subject: [PATCH] `socket.getpeername()` can return more than 2 values (IRCSocket) --- src/IRCSocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCSocket.py b/src/IRCSocket.py index a243877e..dcc61d31 100644 --- a/src/IRCSocket.py +++ b/src/IRCSocket.py @@ -61,7 +61,7 @@ class Socket(IRCObject.Object): self._tls_wrap() self._socket.connect((self._hostname, self._port)) - self.connected_ip, port = self._socket.getpeername() + self.connected_ip = self._socket.getpeername()[0] self.cached_fileno = self._socket.fileno() self.connected = True