You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix spurious exceptions
* chore: use isNetworkAddress instead of try catch
* fix(protocol-autonat-v2): skip non-ip4/ip6 addresses without throwing
Replace isNetworkAddress + getNetConfig pairs with tryGetNetConfig so
each call site parses the multiaddr once, and skip connections whose
remoteAddr is not ip4/ip6 (p2p-circuit, dns, etc.) since getNetworkSegment
can only derive a stable segment from ip4/ip6 addresses.
Adds tests covering:
- non-network local addresses
- non-network remote addresses (p2p-circuit)
- DNS remote addresses (pass isNetworkAddress but not ip4/ip6)
- non-network entries in peer.addresses when checking IPv6 support
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: dozyio <github@dozy.io>
Co-authored-by: dozyio <37986489+dozyio@users.noreply.github.com>
Co-authored-by: tabcat <tabcat00@proton.me>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments