aboutsummaryrefslogtreecommitdiff
path: root/src/app/main
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-10-30 15:30:11 +1000
committerteor <teor@torproject.org>2019-10-31 12:34:20 +1000
commitfc5da4ad048af372b7765aa0d10acba05bc6d2dc (patch)
tree9672286b62eccab898e29ec9cff063d69d70e341 /src/app/main
parent6d03c0566568f4a56efb4aea2f32bcd86c090a22 (diff)
downloadtor-fc5da4ad048af372b7765aa0d10acba05bc6d2dc.tar.gz
tor-fc5da4ad048af372b7765aa0d10acba05bc6d2dc.zip
config: Move relay config actions into the relay module
This commit: * moves relay config actions into relay_config, * moves get_dirportfrontpage() into relay_config, * adds thin wrappers to make the moved code compile. No functional changes: the moved code is still enabled, even if the relay module is disabled. (Some of the checks are re-ordered, so the order of some warnings may change.) Part of 32213.
Diffstat (limited to 'src/app/main')
-rw-r--r--src/app/main/shutdown.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/main/shutdown.c b/src/app/main/shutdown.c
index 93d6351d1b..cc07b921c3 100644
--- a/src/app/main/shutdown.c
+++ b/src/app/main/shutdown.c
@@ -45,6 +45,7 @@
#include "feature/nodelist/routerlist.h"
#include "feature/nodelist/routerlist.h"
#include "feature/relay/ext_orport.h"
+#include "feature/relay/relay_config.h"
#include "feature/rend/rendcache.h"
#include "feature/rend/rendclient.h"
#include "feature/stats/geoip_stats.h"
@@ -143,6 +144,7 @@ tor_free_all(int postfork)
if (!postfork) {
config_free_all();
+ relay_config_free_all();
or_state_free_all();
}
if (!postfork) {