diff options
author | teor <teor@torproject.org> | 2019-11-07 10:44:10 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-11-07 11:43:41 +1000 |
commit | aaef9a2519d81c016bc1f58272121ed908fbff10 (patch) | |
tree | 720f3f62b2cada31b0f77b023288e9a498182d66 /src/app/config/or_options_st.h | |
parent | 57f43bcb03b6dafd3564b128f40e4d6713c91b8e (diff) | |
download | tor-aaef9a2519d81c016bc1f58272121ed908fbff10.tar.gz tor-aaef9a2519d81c016bc1f58272121ed908fbff10.zip |
relay: Stop failing on startup when the relay module is disabled
When the relay module is disabled, make "ClientOnly 1" and
"DirCache 0" by default. (But keep "ClientOnly 0" and
"DirCache 1" as the defaults for the unit tests.)
And run "make autostyle".
Part of ticket 32410.
Diffstat (limited to 'src/app/config/or_options_st.h')
-rw-r--r-- | src/app/config/or_options_st.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/config/or_options_st.h b/src/app/config/or_options_st.h index 1bbb2b97ec..5511763daa 100644 --- a/src/app/config/or_options_st.h +++ b/src/app/config/or_options_st.h @@ -573,7 +573,9 @@ struct or_options_t { int DirCache; /**< Cache all directory documents and accept requests via * tunnelled dir conns from clients. If 1, enabled (default); - * If 0, disabled. */ + * If 0, disabled. Use dir_server_mode() rather than + * referencing this option directly. (Except for routermode + * and relay_config, which do direct checks.) */ char *VirtualAddrNetworkIPv4; /**< Address and mask to hand out for virtual * MAPADDRESS requests for IPv4 addresses */ |