libp2p/js-peer-info

distinct wildcard addresses are conflated.

Open

#60 geöffnet am 1. Dez. 2017

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (25 Forks)github user discovery
P2 - Mediumbugdifficulty:moderatehelp wantedready

Repository-Metriken

Stars
 (37 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

When two wildcard addresses are im the multiaddresses and they use wildcard address and port, they are deemed as the same in peerInfo.multiaddrs.distinct(), only one of them being returned.

For instance,

/ip4/0.0.0.0/tcp/0 is conflated with /ip4/0.0.0.0/tcp/0/some-other-transport because the tranport and port are the same, but really 0 here signifies "any port" and should lead to distinct addresses.

Contributor Guide