parent
6679eea04c
commit
378372e666
@ -177,6 +177,9 @@ class JSONRPC(asyncio.Protocol, LoggedClass):
|
|||||||
return 'unknown'
|
return 'unknown'
|
||||||
if for_log and self.anon_logs:
|
if for_log and self.anon_logs:
|
||||||
return 'xx.xx.xx.xx:xx'
|
return 'xx.xx.xx.xx:xx'
|
||||||
|
if ':' in self.peer_info[0]:
|
||||||
|
return '[{}]:{}'.format(self.peer_info[0], self.peer_info[1])
|
||||||
|
else:
|
||||||
return '{}:{}'.format(self.peer_info[0], self.peer_info[1])
|
return '{}:{}'.format(self.peer_info[0], self.peer_info[1])
|
||||||
|
|
||||||
def connection_made(self, transport):
|
def connection_made(self, transport):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user