lnpeer: print port in error_messages

This commit is contained in:
ThomasV 2019-01-17 13:10:21 +01:00
parent 3ccd2fedff
commit d9e7807fff

View file

@ -241,7 +241,7 @@ class Peer(PrintError):
return self.lnworker.channels_for_peer(self.peer_addr.pubkey)
def diagnostic_name(self):
return 'lnbase:' + str(self.peer_addr.host)
return str(self.peer_addr.host) + ':' + str(self.peer_addr.port)
def ping_if_required(self):
if time.time() - self.ping_time > 120: