fixes to multiaddress generation on connection

This commit is contained in:
John Jones 2017-04-03 21:17:29 -05:00
parent 6ad645dcac
commit 0a3812cb85

View file

@ -117,8 +117,10 @@ struct MultiAddress* libp2p_routing_dht_find_peer_ip_multiaddress(struct Libp2pL
struct Libp2pLinkedList* current = head;
while (current != NULL) {
out = (struct MultiAddress*)current->item;
if (multiaddress_is_ip(out))
if (multiaddress_is_ip(out)) {
libp2p_logger_debug("dht_protocol", "Found MultiAddress %s\n", out->string);
break;
}
current = current->next;
}
if (current == NULL)