libp2p/js-peer-info

distinct wildcard addresses are conflated.

開放

#60 建立於 2017年12月1日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (25 個分叉)github user discovery
P2 - Mediumbugdifficulty:moderatehelp wantedready

倉庫指標

星標
 (37 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南