aboutsummaryrefslogtreecommitdiff
path: root/src/app/config
diff options
context:
space:
mode:
authortrinity-1686a <trinity@deuxfleurs.fr>2023-07-29 22:37:18 +0200
committertrinity-1686a <trinity@deuxfleurs.fr>2023-07-29 23:15:27 +0200
commit9de1d14c1c14d79d8d3cfa79ac60ff813e90c8e8 (patch)
tree1bc80b5ee7ff90d824264a3ec401a19225b336f1 /src/app/config
parent8226148bf191462fca4fad862116ee34aa5bab6d (diff)
downloadtor-9de1d14c1c14d79d8d3cfa79ac60ff813e90c8e8.tar.gz
tor-9de1d14c1c14d79d8d3cfa79ac60ff813e90c8e8.zip
add config ReevaluateExitPolicy
Diffstat (limited to 'src/app/config')
-rw-r--r--src/app/config/config.c1
-rw-r--r--src/app/config/or_options_st.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 60565d15c4..ae7f6203ce 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -637,6 +637,7 @@ static const config_var_t option_vars_[] = {
V(RephistTrackTime, INTERVAL, "24 hours"),
V_IMMUTABLE(RunAsDaemon, BOOL, "0"),
V(ReducedExitPolicy, BOOL, "0"),
+ V(ReevaluateExitPolicy, BOOL, "0"),
OBSOLETE("RunTesting"), // currently unused
V_IMMUTABLE(Sandbox, BOOL, "0"),
V(SafeLogging, STRING, "1"),
diff --git a/src/app/config/or_options_st.h b/src/app/config/or_options_st.h
index 36b00662b5..624dc61bc5 100644
--- a/src/app/config/or_options_st.h
+++ b/src/app/config/or_options_st.h
@@ -141,6 +141,8 @@ struct or_options_t {
* Includes OutboundBindAddresses and
* configured ports. */
int ReducedExitPolicy; /**<Should we use the Reduced Exit Policy? */
+ int ReevaluateExitPolicy; /**<Should we re-evaluate Exit Policy on existing
+ * connections when it changes? */
struct config_line_t *SocksPolicy; /**< Lists of socks policy components */
struct config_line_t *DirPolicy; /**< Lists of dir policy components */
/** Local address to bind outbound sockets */