libp2p/js-peer-info

distinct wildcard addresses are conflated.

Open

#60 创建于 2017年12月1日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (25 fork)github user discovery
P2 - Mediumbugdifficulty:moderatehelp wantedready

仓库指标

Star
 (37 star)
PR 合并指标
 (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.

贡献者指南