socket.getpeername() can return more than 2 values (IRCSocket)

This commit is contained in:
jesopo 2019-02-11 20:34:15 +00:00
parent 137d5b1a58
commit 6c6f1f9c2b

View file

@ -61,7 +61,7 @@ class Socket(IRCObject.Object):
self._tls_wrap() self._tls_wrap()
self._socket.connect((self._hostname, self._port)) 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.cached_fileno = self._socket.fileno()
self.connected = True self.connected = True