socket.getpeername()
can return more than 2 values (IRCSocket)
This commit is contained in:
parent
137d5b1a58
commit
6c6f1f9c2b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue