summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-01 20:32:18 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-01 20:32:18 -0500
commit2b2b97484ad07c91ac410735a96fe8710e60cf23 (patch)
tree1e484c79478f34faea52da03e7bb262fa421d318 /src/app
parent701eaef980de4f7dbb5c31c4fee9b7e1e266d7a1 (diff)
parentad031b64ce355ac3af15adb716a4322858dce4a8 (diff)
downloadtor-2b2b97484ad07c91ac410735a96fe8710e60cf23.tar.gz
tor-2b2b97484ad07c91ac410735a96fe8710e60cf23.zip
Merge branch 'ticket27490a_squashed'
Diffstat (limited to 'src/app')
-rw-r--r--src/app/config/config.c1
-rw-r--r--src/app/config/or_options_st.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 50f3793d6c..d40e362b32 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -340,6 +340,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 6cbc86ec18..9065248a9c 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. */