mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 21:53:48 +01:00
Mark more torrc options as FILENAME rather than as STRING.
This will help us reimplement warn_about_relative_paths(). FILENAME options currently are the same as STRINGs in most respects, except for the type reported to the controller. In this commit, I'm picking the options to change based on: * the current contents of warn_about_relative_paths() * options that end with "File".
This commit is contained in:
parent
f579541f13
commit
15371d801c
@ -382,7 +382,7 @@ static const config_var_t option_vars_[] = {
|
|||||||
V(UnixSocksGroupWritable, BOOL, "0"),
|
V(UnixSocksGroupWritable, BOOL, "0"),
|
||||||
V(CookieAuthentication, BOOL, "0"),
|
V(CookieAuthentication, BOOL, "0"),
|
||||||
V(CookieAuthFileGroupReadable, BOOL, "0"),
|
V(CookieAuthFileGroupReadable, BOOL, "0"),
|
||||||
V(CookieAuthFile, STRING, NULL),
|
V(CookieAuthFile, FILENAME, NULL),
|
||||||
V(CountPrivateBandwidth, BOOL, "0"),
|
V(CountPrivateBandwidth, BOOL, "0"),
|
||||||
VAR("DataDirectory", FILENAME, DataDirectory_option, NULL),
|
VAR("DataDirectory", FILENAME, DataDirectory_option, NULL),
|
||||||
V(DataDirectoryGroupReadable, BOOL, "0"),
|
V(DataDirectoryGroupReadable, BOOL, "0"),
|
||||||
@ -452,7 +452,7 @@ static const config_var_t option_vars_[] = {
|
|||||||
V(ExtendAllowPrivateAddresses, BOOL, "0"),
|
V(ExtendAllowPrivateAddresses, BOOL, "0"),
|
||||||
V(ExitRelay, AUTOBOOL, "auto"),
|
V(ExitRelay, AUTOBOOL, "auto"),
|
||||||
VPORT(ExtORPort),
|
VPORT(ExtORPort),
|
||||||
V(ExtORPortCookieAuthFile, STRING, NULL),
|
V(ExtORPortCookieAuthFile, FILENAME, NULL),
|
||||||
V(ExtORPortCookieAuthFileGroupReadable, BOOL, "0"),
|
V(ExtORPortCookieAuthFileGroupReadable, BOOL, "0"),
|
||||||
V(ExtraInfoStatistics, BOOL, "1"),
|
V(ExtraInfoStatistics, BOOL, "1"),
|
||||||
V(ExtendByEd25519ID, AUTOBOOL, "auto"),
|
V(ExtendByEd25519ID, AUTOBOOL, "auto"),
|
||||||
@ -590,7 +590,7 @@ static const config_var_t option_vars_[] = {
|
|||||||
V(PathsNeededToBuildCircuits, DOUBLE, "-1"),
|
V(PathsNeededToBuildCircuits, DOUBLE, "-1"),
|
||||||
V(PerConnBWBurst, MEMUNIT, "0"),
|
V(PerConnBWBurst, MEMUNIT, "0"),
|
||||||
V(PerConnBWRate, MEMUNIT, "0"),
|
V(PerConnBWRate, MEMUNIT, "0"),
|
||||||
V(PidFile, STRING, NULL),
|
V(PidFile, FILENAME, NULL),
|
||||||
V(TestingTorNetwork, BOOL, "0"),
|
V(TestingTorNetwork, BOOL, "0"),
|
||||||
V(TestingMinExitFlagThreshold, MEMUNIT, "0"),
|
V(TestingMinExitFlagThreshold, MEMUNIT, "0"),
|
||||||
V(TestingMinFastFlagThreshold, MEMUNIT, "0"),
|
V(TestingMinFastFlagThreshold, MEMUNIT, "0"),
|
||||||
@ -635,7 +635,7 @@ static const config_var_t option_vars_[] = {
|
|||||||
V(ServerDNSAllowNonRFC953Hostnames, BOOL,"0"),
|
V(ServerDNSAllowNonRFC953Hostnames, BOOL,"0"),
|
||||||
V(ServerDNSDetectHijacking, BOOL, "1"),
|
V(ServerDNSDetectHijacking, BOOL, "1"),
|
||||||
V(ServerDNSRandomizeCase, BOOL, "1"),
|
V(ServerDNSRandomizeCase, BOOL, "1"),
|
||||||
V(ServerDNSResolvConfFile, STRING, NULL),
|
V(ServerDNSResolvConfFile, FILENAME, NULL),
|
||||||
V(ServerDNSSearchDomains, BOOL, "0"),
|
V(ServerDNSSearchDomains, BOOL, "0"),
|
||||||
V(ServerDNSTestAddresses, CSV,
|
V(ServerDNSTestAddresses, CSV,
|
||||||
"www.google.com,www.mit.edu,www.yahoo.com,www.slashdot.org"),
|
"www.google.com,www.mit.edu,www.yahoo.com,www.slashdot.org"),
|
||||||
|
Loading…
Reference in New Issue
Block a user