aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/or_options_st.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-21 07:57:21 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-21 08:18:31 -0400
commitc3d113a464d4f2e994ae6d1c876875b542f90d5c (patch)
tree595579453519713c3c07682aa2c4482be052aa39 /src/app/config/or_options_st.h
parentf5d773c600e9902f053d03f47b7812bd1f4796b7 (diff)
downloadtor-c3d113a464d4f2e994ae6d1c876875b542f90d5c.tar.gz
tor-c3d113a464d4f2e994ae6d1c876875b542f90d5c.zip
relay: Add AddressDisableIPv6 torrc option
This option controls if a tor relay will attempt address auto discovery and thus ultimately publish an IPv6 ORPort in the descriptor. Behavior is from proposal 312 section 3.2.6. Closes #33245 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app/config/or_options_st.h')
-rw-r--r--src/app/config/or_options_st.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/config/or_options_st.h b/src/app/config/or_options_st.h
index 07126cc6ce..68be5711ce 100644
--- a/src/app/config/or_options_st.h
+++ b/src/app/config/or_options_st.h
@@ -75,6 +75,10 @@ struct or_options_t {
* options is accepted as in IPv4 and IPv6. */
struct config_line_t *Address;
+ /** Boolean: If set, disable IPv6 address resolution, IPv6 ORPorts, IPv6
+ * reachability checks, and publishing an IPv6 ORPort in its descriptor. */
+ int AddressDisableIPv6;
+
char *PidFile; /**< Where to store PID of Tor process. */
struct routerset_t *ExitNodes; /**< Structure containing nicknames, digests,