-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: peers page with /p2p-websocket-star addrs #1306
Conversation
License: MIT Signed-off-by: Henrique Dias <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still getting Error: Invalid ip address: ws-star.discovery.libp2p.io
, same as in #1287.
@hacdias try adding unit tests for isPrivateAndNearby
and test it against multiaddrs like:
/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star/ipfs/QmbJbcN3Fvy5bC7Tr95STx5VFiP1G1WLPCHNceh1yShfbb
/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star/ipfs/QmYy3ka6HsQzpdTXY63nUKShsVdgg5zdhMXZXFeNGPyMT4
License: MIT Signed-off-by: Henrique Dias <[email protected]>
@lidel apparently, those errors were not only be emitted from Just fixed it and added a bunch of tests! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, the error is no more 👍
Small nits below, otherwise lgtm.
Co-Authored-By: Marcin Rataj <[email protected]>
Co-Authored-By: Marcin Rataj <[email protected]>
Co-Authored-By: Marcin Rataj <[email protected]>
Co-Authored-By: Marcin Rataj <[email protected]>
Closes #1287 by checking if
addr.address
is an actual IP.License: MIT
Signed-off-by: Henrique Dias [email protected]