kopia lustrzana https://github.com/Yakifo/amqtt
Merge pull request #194 from ntoonio/master
Getting peer address with self._protocol.remote_address in WebSocketsWriterpull/8/head
commit
87ac03be92
|
@ -121,8 +121,7 @@ class WebSocketsWriter(WriterAdapter):
|
||||||
self._stream = io.BytesIO(b'')
|
self._stream = io.BytesIO(b'')
|
||||||
|
|
||||||
def get_peer_info(self):
|
def get_peer_info(self):
|
||||||
extra_info = self._protocol.writer.get_extra_info('peername')
|
return self._protocol.remote_address
|
||||||
return extra_info[0], extra_info[1]
|
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def close(self):
|
def close(self):
|
||||||
|
|
Ładowanie…
Reference in New Issue