diff options
author | Neel Chauhan <neel@neelc.org> | 2018-09-26 19:14:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-12-01 14:55:57 -0500 |
commit | 822cb93cab59e9735e2efda70bc88c47cc92c498 (patch) | |
tree | 6955f83f3f264ac0b53a4baf7172aa2385874a07 /src/app | |
parent | c82163dff468443d28b6d0c9b1253f7721eb3fdc (diff) | |
download | tor-822cb93cab59e9735e2efda70bc88c47cc92c498.tar.gz tor-822cb93cab59e9735e2efda70bc88c47cc92c498.zip |
Add new option ClientAutoIPv6ORPort to switch between IPv4 and IPv6 OR ports
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/config.c | 1 | ||||
-rw-r--r-- | src/app/config/or_options_st.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index 01b48e3c5f..6a510c56da 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -332,6 +332,7 @@ static config_var_t option_vars_[] = { V(ClientOnly, BOOL, "0"), V(ClientPreferIPv6ORPort, AUTOBOOL, "auto"), V(ClientPreferIPv6DirPort, AUTOBOOL, "auto"), + V(ClientAutoIPv6ORPort, BOOL, "0"), V(ClientRejectInternalAddresses, BOOL, "1"), V(ClientTransportPlugin, LINELIST, NULL), V(ClientUseIPv6, BOOL, "0"), diff --git a/src/app/config/or_options_st.h b/src/app/config/or_options_st.h index 3524b99b53..ff3d30d7ec 100644 --- a/src/app/config/or_options_st.h +++ b/src/app/config/or_options_st.h @@ -666,6 +666,9 @@ struct or_options_t { * accessing this value directly. */ int ClientPreferIPv6DirPort; + /** If true, prefer an IPv4 or IPv6 OR port at random. */ + int ClientAutoIPv6ORPort; + /** The length of time that we think a consensus should be fresh. */ int V3AuthVotingInterval; /** The length of time we think it will take to distribute votes. */ |