diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-06-24 15:12:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-06-24 15:25:34 -0400 |
commit | edb023b1e74dd3b900af399126bd985fc4064857 (patch) | |
tree | a40593ce97d20070ac79fe5dd557832b03e6b607 /src/feature/relay/router.c | |
parent | 6edf7f6710600962f95e7f5458787dbc5e5c7411 (diff) | |
download | tor-edb023b1e74dd3b900af399126bd985fc4064857.tar.gz tor-edb023b1e74dd3b900af399126bd985fc4064857.zip |
Add an AssumeReachableIPv6 autobool option.
This option tells Tor that our IPv6 orport is reachable, and doesn't
need to be checked.
Closes the rest of 33224.
Diffstat (limited to 'src/feature/relay/router.c')
-rw-r--r-- | src/feature/relay/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/relay/router.c b/src/feature/relay/router.c index 97b630add7..d32d03fc1c 100644 --- a/src/feature/relay/router.c +++ b/src/feature/relay/router.c @@ -1374,13 +1374,13 @@ decide_if_publishable_server(void) return 1; if (!router_get_advertised_or_port(options)) return 0; - if (!router_orport_seems_reachable(AF_INET)) { + if (!router_orport_seems_reachable(options, AF_INET)) { // We have an ipv4 orport, and it doesn't seem reachable. if (!publish_even_when_ipv4_orport_unreachable) { return 0; } } - if (!router_orport_seems_reachable(AF_INET6)) { + if (!router_orport_seems_reachable(options, AF_INET6)) { // We have an ipv6 orport, and it doesn't seem reachable. if (!publish_even_when_ipv6_orport_unreachable) { return 0; |