Figure out own IPv6 address
|Reported by:||ln5||Owned by:|
|Severity:||Normal||Keywords:||ipv6, tor-relay, 026-triaged-1, 026-deferrable, lorax, 027-triaged-1-out, tor-03-unspecified-201612|
|Cc:||massar, rl1987@…, sven.herzberg@…||Actual Points:|
A relay should be able to figure out if the system has got an IPv6
address configured, just like what's done for IPv4.
Should we turn resolve_my_address() into resolve_my_addresses() and
teach it about IPv6? get_interface_address6() used here needs some
work for #4806 too.
A few thoughts:
- resolve_my_address() looks at options->Address. What should 'Address' mean now that a relay doesn't have one single address any more?
- get_interface_address() says "This address should only be used in checking whether our address has changed" but is actually used by resolve_my_address() in the case where we fail to resolve our hostname. Does get_interface_address6() need more work or should we just add a comment to where we use it in a non-recommended way?
Change History (23)
comment:5 Changed 4 years ago by nickm
- Milestone changed from Tor: 0.2.4.x-final to Tor: 0.2.5.x-final
comment:6 Changed 3 years ago by nickm
- Milestone changed from Tor: 0.2.5.x-final to Tor: 0.2.6.x-final
comment:8 Changed 2 years ago by nickm
- Milestone changed from Tor: 0.2.6.x-final to Tor: 0.2.7.x-final