go-libp2p
go-libp2p copied to clipboard
Don't accounce deprecated addresses to the network
I just noticed ipfs announces almost all addresses to the swam. This is kind of annoying with ipv6 privacy extensions enabled, because there will be a bunch of deprecated addresses that should not be used for new connections anymore:
...
inet6 2xxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 scope global temporary deprecated dynamic
valid_lft 11814sec preferred_lft 0sec
...
More context and explanation what a deprecated address is: https://www.reddit.com/r/ipv6/comments/nfpu9h/why_do_i_have_3_ipv6_addresses_and_what_do_these/
Related Go proposal: https://github.com/golang/go/issues/42694
Since we need the Go proposal to be implemented, this issue is currently blocked.