diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 2945e2f3c..83ba743da 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -3137,6 +3137,7 @@ class Daemon(AuthJSONRPCServer): : [ { "address": (str) peer address, + "port": (int) peer udp port "node_id": (str) peer node id, "blobs": (list) blob hashes announced by peer } @@ -3159,7 +3160,7 @@ class Daemon(AuthJSONRPCServer): try: contact = self.session.dht_node._routingTable.getContact( originalPublisherID) - except ValueError: + except (ValueError, IndexError): continue if contact in hosts: blobs = hosts[contact] @@ -3182,6 +3183,7 @@ class Daemon(AuthJSONRPCServer): blobs = [] host = { "address": contact.address, + "port": contact.port, "node_id": contact.id.encode("hex"), "blobs": blobs, }