config.c 298 KB
Newer Older
1
/* Copyright (c) 2001 Matej Pfajfar.
Roger Dingledine's avatar
Roger Dingledine committed
2
 * Copyright (c) 2001-2004, Roger Dingledine.
3
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
Nick Mathewson's avatar
Nick Mathewson committed
4
 * Copyright (c) 2007-2018, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6

Nick Mathewson's avatar
Nick Mathewson committed
7
/**
8
 * \file config.c
9
10
11
12
13
14
15
16
17
18
19
20
 * \brief Code to interpret the user's configuration of Tor.
 *
 * This module handles torrc configuration file, including parsing it,
 * combining it with torrc.defaults and the command line, allowing
 * user changes to it (via editing and SIGHUP or via the control port),
 * writing it back to disk (because of SAVECONF from the control port),
 * and -- most importantly, acting on it.
 *
 * The module additionally has some tools for manipulating and
 * inspecting values that are calculated as a result of the
 * configured options.
 *
21
 * <h3>How to add new options</h3>
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 *
 * To add new items to the torrc, there are a minimum of three places to edit:
 * <ul>
 *   <li>The or_options_t structure in or.h, where the options are stored.
 *   <li>The option_vars_ array below in this module, which configures
 *       the names of the torrc options, their types, their multiplicities,
 *       and their mappings to fields in or_options_t.
 *   <li>The manual in doc/tor.1.txt, to document what the new option
 *       is, and how it works.
 * </ul>
 *
 * Additionally, you might need to edit these places too:
 * <ul>
 *   <li>options_validate() below, in case you want to reject some possible
 *       values of the new configuration option.
 *   <li>options_transition_allowed() below, in case you need to
 *       forbid some or all changes in the option while Tor is
 *       running.
 *   <li>options_transition_affects_workers(), in case changes in the option
 *       might require Tor to relaunch or reconfigure its worker threads.
 *   <li>options_transition_affects_descriptor(), in case changes in the
 *       option might require a Tor relay to build and publish a new server
 *       descriptor.
 *   <li>options_act() and/or options_act_reversible(), in case there's some
 *       action that needs to be taken immediately based on the option's
 *       value.
 * </ul>
 *
 * <h3>Changing the value of an option</h3>
 *
 * Because of the SAVECONF command from the control port, it's a bad
 * idea to change the value of any user-configured option in the
 * or_options_t.  If you want to sometimes do this anyway, we recommend
 * that you create a secondary field in or_options_t; that you have the
 * user option linked only to the secondary field; that you use the
 * secondary field to initialize the one that Tor actually looks at; and that
 * you use the one Tor looks as the one that you modify.
Nick Mathewson's avatar
Nick Mathewson committed
59
60
 **/

61
#define CONFIG_PRIVATE
62
#include "core/or/or.h"
63
64
65
66
67
68
69
70
#include "app/config/config.h"
#include "app/config/confparse.h"
#include "app/config/statefile.h"
#include "app/main/main.h"
#include "core/mainloop/connection.h"
#include "core/mainloop/cpuworker.h"
#include "core/mainloop/mainloop.h"
#include "core/mainloop/netstatus.h"
71
72
73
74
75
76
77
78
#include "core/or/channel.h"
#include "core/or/circuitbuild.h"
#include "core/or/circuitlist.h"
#include "core/or/circuitmux.h"
#include "core/or/circuitmux_ewma.h"
#include "core/or/circuitstats.h"
#include "core/or/connection_edge.h"
#include "core/or/connection_or.h"
79
80
81
82
83
84
85
86
#include "core/or/dos.h"
#include "core/or/policies.h"
#include "core/or/relay.h"
#include "core/or/scheduler.h"
#include "feature/client/addressmap.h"
#include "feature/client/bridges.h"
#include "feature/client/entrynodes.h"
#include "feature/client/transports.h"
87
#include "feature/control/control.h"
88
89
#include "feature/dirauth/bwauth.h"
#include "feature/dirauth/guardfraction.h"
90
91
92
#include "feature/dircache/consdiffmgr.h"
#include "feature/dircache/dirserv.h"
#include "feature/dircommon/voting_schedule.h"
93
#include "feature/hibernate/hibernate.h"
94
95
#include "feature/hs/hs_config.h"
#include "feature/nodelist/dirlist.h"
96
#include "feature/nodelist/networkstatus.h"
97
#include "feature/nodelist/nickname.h"
98
#include "feature/nodelist/nodelist.h"
99
100
101
102
#include "feature/nodelist/routerset.h"
#include "feature/relay/dns.h"
#include "feature/relay/ext_orport.h"
#include "feature/relay/routermode.h"
103
104
#include "feature/rend/rendclient.h"
#include "feature/rend/rendservice.h"
105
#include "feature/stats/geoip.h"
106
#include "feature/stats/predict_ports.h"
107
#include "feature/stats/rephist.h"
108
109
110
111
112
113
#include "lib/compress/compress.h"
#include "lib/crypt_ops/crypto_init.h"
#include "lib/crypt_ops/crypto_rand.h"
#include "lib/crypt_ops/crypto_util.h"
#include "lib/encoding/confline.h"
#include "lib/log/git_revision.h"
114
#include "lib/net/resolve.h"
115
116
117
118
119
120
121
122
#include "lib/sandbox/sandbox.h"

#ifdef ENABLE_NSS
#include "lib/crypt_ops/crypto_nss_mgt.h"
#else
#include "lib/crypt_ops/crypto_openssl_mgt.h"
#endif

123
#ifdef _WIN32
124
125
#include <shlobj.h>
#endif
126
127
128
129
130
131
132
133
134
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
Roger Dingledine's avatar
Roger Dingledine committed
135

136
#include "lib/meminfo/meminfo.h"
137
#include "lib/osinfo/uname.h"
138
139
140
141
142
#include "lib/process/daemon.h"
#include "lib/process/pidfile.h"
#include "lib/process/restrict.h"
#include "lib/process/setuid.h"
#include "lib/process/subprocess.h"
143
#include "lib/net/gethostname.h"
144
#include "lib/thread/numcpus.h"
145

146
#include "lib/encoding/keyval.h"
147
#include "lib/fs/conffile.h"
148
#include "lib/evloop/procmon.h"
149

150
#include "feature/dirauth/dirvote.h"
151
#include "feature/dirauth/recommend_pkg.h"
152
#include "feature/dirauth/authmode.h"
153

154
155
#include "core/or/connection_st.h"
#include "core/or/port_cfg_st.h"
156

157
158
159
160
161
162
#ifdef HAVE_SYSTEMD
#   if defined(__COVERITY__) && !defined(__INCLUDE_LEVEL__)
/* Systemd's use of gcc's __INCLUDE_LEVEL__ extension macro appears to confuse
 * Coverity. Here's a kludge to unconfuse it.
 */
#   define __INCLUDE_LEVEL__ 2
163
#endif /* defined(__COVERITY__) && !defined(__INCLUDE_LEVEL__) */
164
#include <systemd/sd-daemon.h>
165
#endif /* defined(HAVE_SYSTEMD) */
166

167
/* Prefix used to indicate a Unix socket in a FooPort configuration. */
168
static const char unix_socket_prefix[] = "unix:";
169
170
171
/* Prefix used to indicate a Unix socket with spaces in it, in a FooPort
 * configuration. */
static const char unix_q_socket_prefix[] = "unix:\"";
172

173
174
175
176
/* limits for TCP send and recv buffer size used for constrained sockets */
#define MIN_CONSTRAINED_TCP_BUFFER 2048
#define MAX_CONSTRAINED_TCP_BUFFER 262144  /* 256k */

177
178
179
180
181
/** macro to help with the bulk rename of *DownloadSchedule to
 * *DowloadInitialDelay . */
#define DOWNLOAD_SCHEDULE(name) \
  { #name "DownloadSchedule", #name "DownloadInitialDelay", 0, 1 }

182
183
/** A list of abbreviations and aliases to map command-line options, obsolete
 * option names, or alternative option names, to their current values. */
184
static config_abbrev_t option_abbrevs_[] = {
185
186
187
188
  PLURAL(AuthDirBadDirCC),
  PLURAL(AuthDirBadExitCC),
  PLURAL(AuthDirInvalidCC),
  PLURAL(AuthDirRejectCC),
189
  PLURAL(EntryNode),
190
191
  PLURAL(ExcludeNode),
  PLURAL(FirewallPort),
192
  PLURAL(LongLivedPort),
193
194
  PLURAL(HiddenServiceNode),
  PLURAL(HiddenServiceExcludeNode),
195
  PLURAL(NumCPU),
196
  PLURAL(RendNode),
197
  PLURAL(RecommendedPackage),
198
  PLURAL(RendExcludeNode),
199
200
  PLURAL(StrictEntryNode),
  PLURAL(StrictExitNode),
201
  PLURAL(StrictNode),
202
  { "l", "Log", 1, 0},
203
  { "AllowUnverifiedNodes", "AllowInvalidNodes", 0, 0},
204
205
  { "AutomapHostSuffixes", "AutomapHostsSuffixes", 0, 0},
  { "AutomapHostOnResolve", "AutomapHostsOnResolve", 0, 0},
206
207
208
  { "BandwidthRateBytes", "BandwidthRate", 0, 0},
  { "BandwidthBurstBytes", "BandwidthBurst", 0, 0},
  { "DirFetchPostPeriod", "StatusFetchPeriod", 0, 0},
209
  { "DirServer", "DirAuthority", 0, 0}, /* XXXX later, make this warn? */
210
  { "MaxConn", "ConnLimit", 0, 1},
211
  { "MaxMemInCellQueues", "MaxMemInQueues", 0, 0},
212
213
214
  { "ORBindAddress", "ORListenAddress", 0, 0},
  { "DirBindAddress", "DirListenAddress", 0, 0},
  { "SocksBindAddress", "SocksListenAddress", 0, 0},
215
216
217
218
  { "UseHelperNodes", "UseEntryGuards", 0, 0},
  { "NumHelperNodes", "NumEntryGuards", 0, 0},
  { "UseEntryNodes", "UseEntryGuards", 0, 0},
  { "NumEntryNodes", "NumEntryGuards", 0, 0},
219
220
  { "ResolvConf", "ServerDNSResolvConfFile", 0, 1},
  { "SearchDomains", "ServerDNSSearchDomains", 0, 1},
221
  { "ServerDNSAllowBrokenResolvConf", "ServerDNSAllowBrokenConfig", 0, 0},
222
  { "PreferTunnelledDirConns", "PreferTunneledDirConns", 0, 0},
223
  { "BridgeAuthoritativeDirectory", "BridgeAuthoritativeDir", 0, 0},
224
  { "HashedControlPassword", "__HashedControlSessionPassword", 1, 0},
225
  { "VirtualAddrNetwork", "VirtualAddrNetworkIPv4", 0, 0},
226
  { "SocksSocketsGroupWritable", "UnixSocksGroupWritable", 0, 1},
227
228
229
  { "_HSLayer2Nodes", "HSLayer2Nodes", 0, 1 },
  { "_HSLayer3Nodes", "HSLayer3Nodes", 0, 1 },

230
231
232
233
234
235
236
237
238
239
  DOWNLOAD_SCHEDULE(ClientBootstrapConsensusAuthority),
  DOWNLOAD_SCHEDULE(ClientBootstrapConsensusAuthorityOnly),
  DOWNLOAD_SCHEDULE(ClientBootstrapConsensusFallback),
  DOWNLOAD_SCHEDULE(TestingBridge),
  DOWNLOAD_SCHEDULE(TestingBridgeBootstrap),
  DOWNLOAD_SCHEDULE(TestingClient),
  DOWNLOAD_SCHEDULE(TestingClientConsensus),
  DOWNLOAD_SCHEDULE(TestingServer),
  DOWNLOAD_SCHEDULE(TestingServerConsensus),

240
241
  { NULL, NULL, 0, 0},
};
242

243
244
245
246
/** dummy instance of or_options_t, used for type-checking its
 * members with CONF_CHECK_VAR_TYPE. */
DUMMY_TYPECHECK_INSTANCE(or_options_t);

Nick Mathewson's avatar
Nick Mathewson committed
247
248
249
250
/** An entry for config_vars: "The option <b>name</b> has type
 * CONFIG_TYPE_<b>conftype</b>, and corresponds to
 * or_options_t.<b>member</b>"
 */
251
#define VAR(name,conftype,member,initvalue)                             \
Neel Chauhan's avatar
Neel Chauhan committed
252
  { name, CONFIG_TYPE_ ## conftype, offsetof(or_options_t, member),     \
253
      initvalue CONF_TEST_MEMBERS(or_options_t, conftype, member) }
254
255
256
/** As VAR, but the option name and member name are the same. */
#define V(member,conftype,initvalue)                                    \
  VAR(#member, conftype, member, initvalue)
Nick Mathewson's avatar
Nick Mathewson committed
257
/** An entry for config_vars: "The option <b>name</b> is obsolete." */
258
259
260
#ifdef TOR_UNIT_TESTS
#define OBSOLETE(name) { name, CONFIG_TYPE_OBSOLETE, 0, NULL, {.INT=NULL} }
#else
261
#define OBSOLETE(name) { name, CONFIG_TYPE_OBSOLETE, 0, NULL }
262
#endif
263

264
265
266
267
268
269
270
271
272
273
274
/**
 * Macro to declare *Port options.  Each one comes in three entries.
 * For example, most users should use "SocksPort" to configure the
 * socks port, but TorBrowser wants to use __SocksPort so that it
 * isn't stored by SAVECONF.  The SocksPortLines virtual option is
 * used to query both options from the controller.
 */
#define VPORT(member)                                           \
  VAR(#member "Lines", LINELIST_V, member ## _lines, NULL),     \
  VAR(#member, LINELIST_S, member ## _lines, NULL),             \
  VAR("__" #member, LINELIST_S, member ## _lines, NULL)
275

276
277
278
/** UINT64_MAX as a decimal string */
#define UINT64_MAX_STRING "18446744073709551615"

Nick Mathewson's avatar
Nick Mathewson committed
279
280
281
282
/** Array of configuration options.  Until we disallow nonstandard
 * abbreviations, order is significant, since the first matching option will
 * be chosen first.
 */
283
static config_var_t option_vars_[] = {
284
  V(AccountingMax,               MEMUNIT,  "0 bytes"),
285
  VAR("AccountingRule",          STRING,   AccountingRule_option,  "max"),
286
287
  V(AccountingStart,             STRING,   NULL),
  V(Address,                     STRING,   NULL),
Nick Mathewson's avatar
Nick Mathewson committed
288
  OBSOLETE("AllowDotExit"),
289
  OBSOLETE("AllowInvalidNodes"),
290
  V(AllowNonRFC953Hostnames,     BOOL,     "0"),
291
  OBSOLETE("AllowSingleHopCircuits"),
292
  OBSOLETE("AllowSingleHopExits"),
293
294
  V(AlternateBridgeAuthority,    LINELIST, NULL),
  V(AlternateDirAuthority,       LINELIST, NULL),
295
  OBSOLETE("AlternateHSAuthority"),
296
  V(AssumeReachable,             BOOL,     "0"),
297
298
  OBSOLETE("AuthDirBadDir"),
  OBSOLETE("AuthDirBadDirCCs"),
299
  V(AuthDirBadExit,              LINELIST, NULL),
300
  V(AuthDirBadExitCCs,           CSV,      ""),
301
  V(AuthDirInvalid,              LINELIST, NULL),
302
  V(AuthDirInvalidCCs,           CSV,      ""),
303
  V(AuthDirFastGuarantee,        MEMUNIT,  "100 KB"),
304
  V(AuthDirGuardBWGuarantee,     MEMUNIT,  "2 MB"),
305
  V(AuthDirPinKeys,              BOOL,     "1"),
306
  V(AuthDirReject,               LINELIST, NULL),
307
  V(AuthDirRejectCCs,            CSV,      ""),
308
  OBSOLETE("AuthDirRejectUnlisted"),
309
  OBSOLETE("AuthDirListBadDirs"),
310
  V(AuthDirListBadExits,         BOOL,     "0"),
311
  V(AuthDirMaxServersPerAddr,    UINT,     "2"),
312
  OBSOLETE("AuthDirMaxServersPerAuthAddr"),
313
  V(AuthDirHasIPv6Connectivity,  BOOL,     "0"),
314
315
316
317
  VAR("AuthoritativeDirectory",  BOOL, AuthoritativeDir,    "0"),
  V(AutomapHostsOnResolve,       BOOL,     "0"),
  V(AutomapHostsSuffixes,        CSV,      ".onion,.exit"),
  V(AvoidDiskWrites,             BOOL,     "0"),
318
319
  V(BandwidthBurst,              MEMUNIT,  "1 GB"),
  V(BandwidthRate,               MEMUNIT,  "1 GB"),
320
321
  V(BridgeAuthoritativeDir,      BOOL,     "0"),
  VAR("Bridge",                  LINELIST, Bridges,    NULL),
322
  V(BridgePassword,              STRING,   NULL),
323
  V(BridgeRecordUsageByCountry,  BOOL,     "1"),
324
  V(BridgeRelay,                 BOOL,     "0"),
325
  V(BridgeDistribution,          STRING,   NULL),
326
  VAR("CacheDirectory",          FILENAME, CacheDirectory_option, NULL),
327
  V(CacheDirectoryGroupReadable, AUTOBOOL,     "auto"),
328
  V(CellStatistics,              BOOL,     "0"),
329
  V(PaddingStatistics,           BOOL,     "1"),
330
  V(LearnCircuitBuildTimeout,    BOOL,     "1"),
331
  V(CircuitBuildTimeout,         INTERVAL, "0"),
332
333
  OBSOLETE("CircuitIdleTimeout"),
  V(CircuitsAvailableTimeout,    INTERVAL, "0"),
334
  V(CircuitStreamTimeout,        INTERVAL, "0"),
335
  V(CircuitPriorityHalflife,     DOUBLE,  "-1.0"), /*negative:'Use default'*/
336
  V(ClientDNSRejectInternalAddresses, BOOL,"1"),
337
  V(ClientOnly,                  BOOL,     "0"),
338
339
  V(ClientPreferIPv6ORPort,      AUTOBOOL, "auto"),
  V(ClientPreferIPv6DirPort,     AUTOBOOL, "auto"),
340
  V(ClientRejectInternalAddresses, BOOL,   "1"),
341
  V(ClientTransportPlugin,       LINELIST, NULL),
342
  V(ClientUseIPv6,               BOOL,     "0"),
343
  V(ClientUseIPv4,               BOOL,     "1"),
344
  V(ConsensusParams,             STRING,   NULL),
345
  V(ConnLimit,                   UINT,     "1000"),
346
  V(ConnDirectionStatistics,     BOOL,     "0"),
347
348
349
  V(ConstrainedSockets,          BOOL,     "0"),
  V(ConstrainedSockSize,         MEMUNIT,  "8192"),
  V(ContactInfo,                 STRING,   NULL),
350
  OBSOLETE("ControlListenAddress"),
351
  VPORT(ControlPort),
352
  V(ControlPortFileGroupReadable,BOOL,     "0"),
353
  V(ControlPortWriteToFile,      FILENAME, NULL),
354
  V(ControlSocket,               LINELIST, NULL),
355
  V(ControlSocketsGroupWritable, BOOL,     "0"),
356
  V(UnixSocksGroupWritable,    BOOL,     "0"),
357
358
359
  V(CookieAuthentication,        BOOL,     "0"),
  V(CookieAuthFileGroupReadable, BOOL,     "0"),
  V(CookieAuthFile,              STRING,   NULL),
360
  V(CountPrivateBandwidth,       BOOL,     "0"),
361
  VAR("DataDirectory",           FILENAME, DataDirectory_option, NULL),
362
  V(DataDirectoryGroupReadable,  BOOL,     "0"),
363
  V(DisableOOSCheck,             BOOL,     "1"),
364
  V(DisableNetwork,              BOOL,     "0"),
365
  V(DirAllowPrivateAddresses,    BOOL,     "0"),
366
  V(TestingAuthDirTimeToLearnReachability, INTERVAL, "30 minutes"),
367
  OBSOLETE("DirListenAddress"),
368
  V(DirPolicy,                   LINELIST, NULL),
369
  VPORT(DirPort),
370
  V(DirPortFrontPage,            FILENAME, NULL),
371
  VAR("DirReqStatistics",        BOOL,     DirReqStatistics_option, "1"),
372
  VAR("DirAuthority",            LINELIST, DirAuthorities, NULL),
373
  V(DirCache,                    BOOL,     "1"),
374
375
376
377
378
  /* A DirAuthorityFallbackRate of 0.1 means that 0.5% of clients try an
   * authority when all fallbacks are up, and 2% try an authority when 25% of
   * fallbacks are down. (We rebuild the list when 25% of fallbacks are down).
   *
   * We want to reduce load on authorities, but keep these two figures within
Nick Mathewson's avatar
Nick Mathewson committed
379
380
   * an order of magnitude, so there isn't too much load shifting to
   * authorities when fallbacks go down. */
381
  V(DirAuthorityFallbackRate,    DOUBLE,   "0.1"),
382
  V(DisableAllSwap,              BOOL,     "0"),
383
  V(DisableDebuggerAttachment,   BOOL,     "1"),
384
  OBSOLETE("DisableIOCP"),
385
  OBSOLETE("DisableV2DirectoryInfo_"),
386
  OBSOLETE("DynamicDHGroups"),
387
  VPORT(DNSPort),
388
  OBSOLETE("DNSListenAddress"),
389
390
391
  /* DoS circuit creation options. */
  V(DoSCircuitCreationEnabled,   AUTOBOOL, "auto"),
  V(DoSCircuitCreationMinConnections,      UINT, "0"),
392
  V(DoSCircuitCreationRate,      UINT,     "0"),
393
394
395
396
397
398
399
400
401
  V(DoSCircuitCreationBurst,     UINT,     "0"),
  V(DoSCircuitCreationDefenseType,         INT,  "0"),
  V(DoSCircuitCreationDefenseTimePeriod,   INTERVAL, "0"),
  /* DoS connection options. */
  V(DoSConnectionEnabled,        AUTOBOOL, "auto"),
  V(DoSConnectionMaxConcurrentCount,       UINT, "0"),
  V(DoSConnectionDefenseType,    INT,      "0"),
  /* DoS single hop client options. */
  V(DoSRefuseSingleHopClientRendezvous,    AUTOBOOL, "auto"),
402
  V(DownloadExtraInfo,           BOOL,     "0"),
403
  V(TestingEnableConnBwEvent,    BOOL,     "0"),
404
  V(TestingEnableCellStatsEvent, BOOL,     "0"),
405
  OBSOLETE("TestingEnableTbEmptyEvent"),
406
  V(EnforceDistinctSubnets,      BOOL,     "1"),
407
  V(EntryNodes,                  ROUTERSET,   NULL),
408
  V(EntryStatistics,             BOOL,     "0"),
409
  V(TestingEstimatedDescriptorPropagationTime, INTERVAL, "10 minutes"),
410
411
  V(ExcludeNodes,                ROUTERSET, NULL),
  V(ExcludeExitNodes,            ROUTERSET, NULL),
412
  OBSOLETE("ExcludeSingleHopRelays"),
413
  V(ExitNodes,                   ROUTERSET, NULL),
414
415
  V(ExitPolicy,                  LINELIST, NULL),
  V(ExitPolicyRejectPrivate,     BOOL,     "1"),
416
  V(ExitPolicyRejectLocalInterfaces, BOOL, "0"),
417
  V(ExitPortStatistics,          BOOL,     "0"),
418
  V(ExtendAllowPrivateAddresses, BOOL,     "0"),
419
  V(ExitRelay,                   AUTOBOOL, "auto"),
420
  VPORT(ExtORPort),
421
  V(ExtORPortCookieAuthFile,     STRING,   NULL),
422
  V(ExtORPortCookieAuthFileGroupReadable, BOOL, "0"),
423
  V(ExtraInfoStatistics,         BOOL,     "1"),
424
  V(ExtendByEd25519ID,           AUTOBOOL, "auto"),
425
  V(FallbackDir,                 LINELIST, NULL),
426

427
  V(UseDefaultFallbackDirs,      BOOL,     "1"),
428

429
  OBSOLETE("FallbackNetworkstatusFile"),
430
431
  V(FascistFirewall,             BOOL,     "0"),
  V(FirewallPorts,               CSV,      ""),
432
  OBSOLETE("FastFirstHopPK"),
433
  V(FetchDirInfoEarly,           BOOL,     "0"),
434
  V(FetchDirInfoExtraEarly,      BOOL,     "0"),
435
436
437
  V(FetchServerDescriptors,      BOOL,     "1"),
  V(FetchHidServDescriptors,     BOOL,     "1"),
  V(FetchUselessDescriptors,     BOOL,     "0"),
438
  OBSOLETE("FetchV2Networkstatus"),
439
  V(GeoIPExcludeUnknown,         AUTOBOOL, "auto"),
440
#ifdef _WIN32
441
  V(GeoIPFile,                   FILENAME, "<default>"),
nils's avatar
nils committed
442
  V(GeoIPv6File,                 FILENAME, "<default>"),
443
#else
444
445
  V(GeoIPFile,                   FILENAME,
    SHARE_DATADIR PATH_SEPARATOR "tor" PATH_SEPARATOR "geoip"),
nils's avatar
nils committed
446
447
  V(GeoIPv6File,                 FILENAME,
    SHARE_DATADIR PATH_SEPARATOR "tor" PATH_SEPARATOR "geoip6"),
448
#endif /* defined(_WIN32) */
449
  OBSOLETE("Group"),
450
  V(GuardLifetime,               INTERVAL, "0 minutes"),
451
  V(HardwareAccel,               BOOL,     "0"),
452
  V(HeartbeatPeriod,             INTERVAL, "6 hours"),
Alexander Færøy's avatar
Alexander Færøy committed
453
  V(MainloopStats,               BOOL,     "0"),
454
455
  V(AccelName,                   STRING,   NULL),
  V(AccelDir,                    FILENAME, NULL),
456
  V(HashedControlPassword,       LINELIST, NULL),
457
  OBSOLETE("HidServDirectoryV2"),
Nick Mathewson's avatar
Nick Mathewson committed
458
  VAR("HiddenServiceDir",    LINELIST_S, RendConfigLines,    NULL),
459
  VAR("HiddenServiceDirGroupReadable",  LINELIST_S, RendConfigLines, NULL),
Nick Mathewson's avatar
Nick Mathewson committed
460
461
  VAR("HiddenServiceOptions",LINELIST_V, RendConfigLines,    NULL),
  VAR("HiddenServicePort",   LINELIST_S, RendConfigLines,    NULL),
462
  VAR("HiddenServiceVersion",LINELIST_S, RendConfigLines,    NULL),
463
  VAR("HiddenServiceAuthorizeClient",LINELIST_S,RendConfigLines, NULL),
464
  VAR("HiddenServiceAllowUnknownPorts",LINELIST_S, RendConfigLines, NULL),
465
466
  VAR("HiddenServiceMaxStreams",LINELIST_S, RendConfigLines, NULL),
  VAR("HiddenServiceMaxStreamsCloseCircuit",LINELIST_S, RendConfigLines, NULL),
467
  VAR("HiddenServiceNumIntroductionPoints", LINELIST_S, RendConfigLines, NULL),
468
  VAR("HiddenServiceExportCircuitID", LINELIST_S,  RendConfigLines, NULL),
Nick Mathewson's avatar
Nick Mathewson committed
469
  VAR("HiddenServiceStatistics", BOOL, HiddenServiceStatistics_option, "1"),
470
  V(HidServAuth,                 LINELIST, NULL),
471
  V(ClientOnionAuthDir,          FILENAME, NULL),
472
  OBSOLETE("CloseHSClientCircuitsImmediatelyOnTimeout"),
473
  OBSOLETE("CloseHSServiceRendCircuitsImmediatelyOnTimeout"),
474
475
  V(HiddenServiceSingleHopMode,  BOOL,     "0"),
  V(HiddenServiceNonAnonymousMode,BOOL,    "0"),
476
477
478
479
  V(HTTPProxy,                   STRING,   NULL),
  V(HTTPProxyAuthenticator,      STRING,   NULL),
  V(HTTPSProxy,                  STRING,   NULL),
  V(HTTPSProxyAuthenticator,     STRING,   NULL),
480
  VPORT(HTTPTunnelPort),
481
  V(IPv6Exit,                    BOOL,     "0"),
482
  VAR("ServerTransportPlugin",   LINELIST, ServerTransportPlugin,  NULL),
483
  V(ServerTransportListenAddr,   LINELIST, NULL),
484
  V(ServerTransportOptions,      LINELIST, NULL),
485
  V(SigningKeyLifetime,          INTERVAL, "30 days"),
486
487
488
489
  V(Socks4Proxy,                 STRING,   NULL),
  V(Socks5Proxy,                 STRING,   NULL),
  V(Socks5ProxyUsername,         STRING,   NULL),
  V(Socks5ProxyPassword,         STRING,   NULL),
490
491
  VAR("KeyDirectory",            FILENAME, KeyDirectory_option, NULL),
  V(KeyDirectoryGroupReadable,   BOOL,     "0"),
492
493
  VAR("HSLayer2Nodes",           ROUTERSET,  HSLayer2Nodes,  NULL),
  VAR("HSLayer3Nodes",           ROUTERSET,  HSLayer3Nodes,  NULL),
494
  V(KeepalivePeriod,             INTERVAL, "5 minutes"),
495
  V(KeepBindCapabilities,            AUTOBOOL, "auto"),
496
  VAR("Log",                     LINELIST, Logs,             NULL),
497
  V(LogMessageDomains,           BOOL,     "0"),
498
  V(LogTimeGranularity,          MSEC_INTERVAL, "1 second"),
Arlo Breault's avatar
Arlo Breault committed
499
  V(TruncateLogFile,             BOOL,     "0"),
Peter Palfrader's avatar
Peter Palfrader committed
500
  V(SyslogIdentityTag,           STRING,   NULL),
501
  V(AndroidIdentityTag,          STRING,   NULL),
502
  V(LongLivedPorts,              CSV,
Nick Mathewson's avatar
Nick Mathewson committed
503
        "21,22,706,1863,5050,5190,5222,5223,6523,6667,6697,8300"),
504
505
506
  VAR("MapAddress",              LINELIST, AddressMap,           NULL),
  V(MaxAdvertisedBandwidth,      MEMUNIT,  "1 GB"),
  V(MaxCircuitDirtiness,         INTERVAL, "10 minutes"),
507
  V(MaxClientCircuitsPending,    UINT,     "32"),
508
  V(MaxConsensusAgeForDiffs,     INTERVAL, "0 seconds"),
509
  VAR("MaxMemInQueues",          MEMUNIT,   MaxMemInQueues_raw, "0"),
510
511
  OBSOLETE("MaxOnionsPending"),
  V(MaxOnionQueueDelay,          MSEC_INTERVAL, "1750 msec"),
512
  V(MaxUnparseableDescSizeToLog, MEMUNIT, "10 MB"),
513
  V(MinMeasuredBWsForAuthToIgnoreAdvertised, INT, "500"),
514
  VAR("MyFamily",                LINELIST, MyFamily_lines,       NULL),
515
  V(NewCircuitPeriod,            INTERVAL, "30 seconds"),
516
  OBSOLETE("NamingAuthoritativeDirectory"),
517
  OBSOLETE("NATDListenAddress"),
518
  VPORT(NATDPort),
519
  V(Nickname,                    STRING,   NULL),
520
  OBSOLETE("PredictedPortsRelevanceTime"),
521
  OBSOLETE("WarnUnsafeSocks"),
522
  VAR("NodeFamily",              LINELIST, NodeFamilies,         NULL),
523
  V(NoExec,                      BOOL,     "0"),
524
  V(NumCPUs,                     UINT,     "0"),
525
  V(NumDirectoryGuards,          UINT,     "0"),
526
  V(NumEntryGuards,              UINT,     "0"),
527
  V(NumPrimaryGuards,            UINT,     "0"),
Nick Mathewson's avatar
Nick Mathewson committed
528
  V(OfflineMasterKey,            BOOL,     "0"),
529
  OBSOLETE("ORListenAddress"),
530
  VPORT(ORPort),
531
  V(OutboundBindAddress,         LINELIST,   NULL),
532
533
  V(OutboundBindAddressOR,       LINELIST,   NULL),
  V(OutboundBindAddressExit,     LINELIST,   NULL),
534

535
  OBSOLETE("PathBiasDisableRate"),
536
537
  V(PathBiasCircThreshold,       INT,      "-1"),
  V(PathBiasNoticeRate,          DOUBLE,   "-1"),
538
  V(PathBiasWarnRate,            DOUBLE,   "-1"),
539
  V(PathBiasExtremeRate,         DOUBLE,   "-1"),
540
  V(PathBiasScaleThreshold,      INT,      "-1"),
541
542
  OBSOLETE("PathBiasScaleFactor"),
  OBSOLETE("PathBiasMultFactor"),
543
  V(PathBiasDropGuards,          AUTOBOOL, "0"),
544
545
546
547
548
549
  OBSOLETE("PathBiasUseCloseCounts"),

  V(PathBiasUseThreshold,       INT,      "-1"),
  V(PathBiasNoticeUseRate,          DOUBLE,   "-1"),
  V(PathBiasExtremeUseRate,         DOUBLE,   "-1"),
  V(PathBiasScaleUseThreshold,      INT,      "-1"),
550

551
  V(PathsNeededToBuildCircuits,  DOUBLE,   "-1"),
552
553
  V(PerConnBWBurst,              MEMUNIT,  "0"),
  V(PerConnBWRate,               MEMUNIT,  "0"),
554
  V(PidFile,                     STRING,   NULL),
555
  V(TestingTorNetwork,           BOOL,     "0"),
556
  V(TestingMinExitFlagThreshold, MEMUNIT,  "0"),
557
  V(TestingMinFastFlagThreshold, MEMUNIT,  "0"),
558

559
  V(TestingLinkCertLifetime,          INTERVAL, "2 days"),
560
561
562
563
564
  V(TestingAuthKeyLifetime,          INTERVAL, "2 days"),
  V(TestingLinkKeySlop,              INTERVAL, "3 hours"),
  V(TestingAuthKeySlop,              INTERVAL, "3 hours"),
  V(TestingSigningKeySlop,           INTERVAL, "1 day"),

565
  V(OptimisticData,              AUTOBOOL, "auto"),
566
567
  OBSOLETE("PortForwarding"),
  OBSOLETE("PortForwardingHelper"),
568
  OBSOLETE("PreferTunneledDirConns"),
569
  V(ProtocolWarnings,            BOOL,     "0"),
570
  V(PublishServerDescriptor,     CSV,      "1"),
571
572
573
574
575
576
577
  V(PublishHidServDescriptors,   BOOL,     "1"),
  V(ReachableAddresses,          LINELIST, NULL),
  V(ReachableDirAddresses,       LINELIST, NULL),
  V(ReachableORAddresses,        LINELIST, NULL),
  V(RecommendedVersions,         LINELIST, NULL),
  V(RecommendedClientVersions,   LINELIST, NULL),
  V(RecommendedServerVersions,   LINELIST, NULL),
578
  V(RecommendedPackages,         LINELIST, NULL),
579
580
  V(ReducedConnectionPadding,    BOOL,     "0"),
  V(ConnectionPadding,           AUTOBOOL, "auto"),
581
  V(RefuseUnknownExits,          AUTOBOOL, "auto"),
582
  V(RejectPlaintextPorts,        CSV,      ""),
583
584
585
586
587
  V(RelayBandwidthBurst,         MEMUNIT,  "0"),
  V(RelayBandwidthRate,          MEMUNIT,  "0"),
  V(RendPostPeriod,              INTERVAL, "1 hour"),
  V(RephistTrackTime,            INTERVAL, "24 hours"),
  V(RunAsDaemon,                 BOOL,     "0"),
588
  V(ReducedExitPolicy,           BOOL,     "0"),
589
  OBSOLETE("RunTesting"), // currently unused
590
  V(Sandbox,                     BOOL,     "0"),
591
  V(SafeLogging,                 STRING,   "1"),
592
  V(SafeSocks,                   BOOL,     "0"),
593
  V(ServerDNSAllowBrokenConfig,  BOOL,     "1"),
594
595
  V(ServerDNSAllowNonRFC953Hostnames, BOOL,"0"),
  V(ServerDNSDetectHijacking,    BOOL,     "1"),
596
  V(ServerDNSRandomizeCase,      BOOL,     "1"),
597
598
599
  V(ServerDNSResolvConfFile,     STRING,   NULL),
  V(ServerDNSSearchDomains,      BOOL,     "0"),
  V(ServerDNSTestAddresses,      CSV,
600
      "www.google.com,www.mit.edu,www.yahoo.com,www.slashdot.org"),
601
602
603
604
605
  OBSOLETE("SchedulerLowWaterMark__"),
  OBSOLETE("SchedulerHighWaterMark__"),
  OBSOLETE("SchedulerMaxFlushCells__"),
  V(KISTSchedRunInterval,        MSEC_INTERVAL, "0 msec"),
  V(KISTSockBufSizeFactor,       DOUBLE,   "1.0"),
606
  V(Schedulers,                  CSV,      "KIST,KISTLite,Vanilla"),
607
  V(ShutdownWaitLength,          INTERVAL, "30 seconds"),
608
  OBSOLETE("SocksListenAddress"),
609
  V(SocksPolicy,                 LINELIST, NULL),
610
  VPORT(SocksPort),
611
  V(SocksTimeout,                INTERVAL, "2 minutes"),
612
  V(SSLKeyLifetime,              INTERVAL, "0"),
613
614
  OBSOLETE("StrictEntryNodes"),
  OBSOLETE("StrictExitNodes"),
615
  V(StrictNodes,                 BOOL,     "0"),
616
  OBSOLETE("Support022HiddenServices"),
617
  V(TestSocks,                   BOOL,     "0"),
618
  V(TokenBucketRefillInterval,   MSEC_INTERVAL, "100 msec"),
David Goulet's avatar
David Goulet committed
619
620
  OBSOLETE("Tor2webMode"),
  OBSOLETE("Tor2webRendezvousPoints"),
621
  OBSOLETE("TLSECGroup"),
622
623
  V(TrackHostExits,              CSV,      NULL),
  V(TrackHostExitsExpire,        INTERVAL, "30 minutes"),
624
  OBSOLETE("TransListenAddress"),
625
  VPORT(TransPort),
626
  V(TransProxyType,              STRING,   "default"),
627
  OBSOLETE("TunnelDirConns"),
628
  V(UpdateBridgesFromAuthority,  BOOL,     "0"),
629
  V(UseBridges,                  BOOL,     "0"),
630
  VAR("UseEntryGuards",          BOOL,     UseEntryGuards_option, "1"),
Nick Mathewson's avatar
Nick Mathewson committed
631
  OBSOLETE("UseEntryGuardsAsDirGuards"),
632
  V(UseGuardFraction,            AUTOBOOL, "auto"),
633
  V(UseMicrodescriptors,         AUTOBOOL, "auto"),
634
  OBSOLETE("UseNTorHandshake"),
635
  V(User,                        STRING,   NULL),
636
  OBSOLETE("UserspaceIOCPBuffers"),
637
  V(AuthDirSharedRandomness,     BOOL,     "1"),
638
  V(AuthDirTestEd25519LinkKeys,  BOOL,     "1"),
639
  OBSOLETE("V1AuthoritativeDirectory"),
640
  OBSOLETE("V2AuthoritativeDirectory"),
641
  VAR("V3AuthoritativeDirectory",BOOL, V3AuthoritativeDir,   "0"),
642
643
644
  V(TestingV3AuthInitialVotingInterval, INTERVAL, "30 minutes"),
  V(TestingV3AuthInitialVoteDelay, INTERVAL, "5 minutes"),
  V(TestingV3AuthInitialDistDelay, INTERVAL, "5 minutes"),
645
  V(TestingV3AuthVotingStartOffset, INTERVAL, "0"),
646
647
648
649
  V(V3AuthVotingInterval,        INTERVAL, "1 hour"),
  V(V3AuthVoteDelay,             INTERVAL, "5 minutes"),
  V(V3AuthDistDelay,             INTERVAL, "5 minutes"),
  V(V3AuthNIntervalsValid,       UINT,     "3"),
650
  V(V3AuthUseLegacyKey,          BOOL,     "0"),
651
  V(V3BandwidthsFile,            FILENAME, NULL),
652
  V(GuardfractionFile,           FILENAME, NULL),
653
  VAR("VersioningAuthoritativeDirectory",BOOL,VersioningAuthoritativeDir, "0"),
654
  OBSOLETE("VoteOnHidServDirectoriesV2"),
655
656
  V(VirtualAddrNetworkIPv4,      STRING,   "127.192.0.0/10"),
  V(VirtualAddrNetworkIPv6,      STRING,   "[FE80::]/10"),
657
  V(WarnPlaintextPorts,          CSV,      "23,109,110,143"),
658
659
  OBSOLETE("UseFilteringSSLBufferevents"),
  OBSOLETE("__UseFilteringSSLBufferevents"),
660
  VAR("__ReloadTorrcOnSIGHUP",   BOOL,  ReloadTorrcOnSIGHUP,      "1"),
661
662
  VAR("__AllDirActionsPrivate",  BOOL,  AllDirActionsPrivate,     "0"),
  VAR("__DisablePredictedCircuits",BOOL,DisablePredictedCircuits, "0"),
663
  VAR("__DisableSignalHandlers", BOOL,  DisableSignalHandlers,    "0"),
664
  VAR("__LeaveStreamsUnattached",BOOL,  LeaveStreamsUnattached,   "0"),
665
666
  VAR("__HashedControlSessionPassword", LINELIST, HashedControlSessionPassword,
      NULL),
667
  VAR("__OwningControllerProcess",STRING,OwningControllerProcess, NULL),
668
  VAR("__OwningControllerFD", UINT64, OwningControllerFD, UINT64_MAX_STRING),
669
  V(MinUptimeHidServDirectoryV2, INTERVAL, "96 hours"),
670
671
672
673
  V(TestingServerDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(TestingClientDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(TestingServerConsensusDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(TestingClientConsensusDownloadInitialDelay, CSV_INTERVAL, "0"),
674
  /* With the ClientBootstrapConsensus*Download* below:
675
   * Clients with only authorities will try:
676
677
   *  - at least 3 authorities over 10 seconds, then exponentially backoff,
   *    with the next attempt 3-21 seconds later,
678
   * Clients with authorities and fallbacks will try:
679
680
   *  - at least 2 authorities and 4 fallbacks over 21 seconds, then
   *    exponentially backoff, with the next attempts 4-33 seconds later,
681
   * Clients will also retry when an application request arrives.
682
   * After a number of failed requests, clients retry every 3 days + 1 hour.
683
684
685
686
687
688
   *
   * Clients used to try 2 authorities over 10 seconds, then wait for
   * 60 minutes or an application request.
   *
   * When clients have authorities and fallbacks available, they use these
   * schedules: (we stagger the times to avoid thundering herds) */
689
690
  V(ClientBootstrapConsensusAuthorityDownloadInitialDelay, CSV_INTERVAL, "6"),
  V(ClientBootstrapConsensusFallbackDownloadInitialDelay, CSV_INTERVAL, "0"),
691
  /* When clients only have authorities available, they use this schedule: */
692
  V(ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay, CSV_INTERVAL,
693
    "0"),
694
695
696
697
  /* We don't want to overwhelm slow networks (or mirrors whose replies are
   * blocked), but we also don't want to fail if only some mirrors are
   * blackholed. Clients will try 3 directories simultaneously.
   * (Relays never use simultaneous connections.) */
698
  V(ClientBootstrapConsensusMaxInProgressTries, UINT, "3"),
699
700
  /* When a client has any running bridges, check each bridge occasionally,
    * whether or not that bridge is actually up. */
701
  V(TestingBridgeDownloadInitialDelay, CSV_INTERVAL,"10800"),
702
703
704
705
  /* When a client is just starting, or has no running bridges, check each
   * bridge a few times quickly, and then try again later. These schedules
   * are much longer than the other schedules, because we try each and every
   * configured bridge with this schedule. */
706
  V(TestingBridgeBootstrapDownloadInitialDelay, CSV_INTERVAL, "0"),
707
708
  V(TestingClientMaxIntervalWithoutRequest, INTERVAL, "10 minutes"),
  V(TestingDirConnectionMaxStall, INTERVAL, "5 minutes"),
709
710
711
712
713
714
  OBSOLETE("TestingConsensusMaxDownloadTries"),
  OBSOLETE("ClientBootstrapConsensusMaxDownloadTries"),
  OBSOLETE("ClientBootstrapConsensusAuthorityOnlyMaxDownloadTries"),
  OBSOLETE("TestingDescriptorMaxDownloadTries"),
  OBSOLETE("TestingMicrodescMaxDownloadTries"),
  OBSOLETE("TestingCertMaxDownloadTries"),
715
  V(TestingDirAuthVoteExit, ROUTERSET, NULL),
716
  V(TestingDirAuthVoteExitIsStrict,  BOOL,     "0"),
717
  V(TestingDirAuthVoteGuard, ROUTERSET, NULL),
718
  V(TestingDirAuthVoteGuardIsStrict,  BOOL,     "0"),
719
  V(TestingDirAuthVoteHSDir, ROUTERSET, NULL),
720
  V(TestingDirAuthVoteHSDirIsStrict,  BOOL,     "0"),
721
  VAR("___UsingTestNetworkDefaults", BOOL, UsingTestNetworkDefaults_, "0"),
722

723
  END_OF_CONFIG_VARS
724
};
725

726
727
/** Override default values with these if the user sets the TestingTorNetwork
 * option. */
728
static const config_var_t testing_tor_network_defaults[] = {
729
730
731
732
  V(DirAllowPrivateAddresses,    BOOL,     "1"),
  V(EnforceDistinctSubnets,      BOOL,     "0"),
  V(AssumeReachable,             BOOL,     "1"),
  V(AuthDirMaxServersPerAddr,    UINT,     "0"),
733
734
  V(ClientBootstrapConsensusAuthorityDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(ClientBootstrapConsensusFallbackDownloadInitialDelay, CSV_INTERVAL, "0"),
735
  V(ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay, CSV_INTERVAL,
736
    "0"),
737
  V(ClientDNSRejectInternalAddresses, BOOL,"0"),
738
  V(ClientRejectInternalAddresses, BOOL,   "0"),
739
  V(CountPrivateBandwidth,       BOOL,     "1"),
740
  V(ExitPolicyRejectPrivate,     BOOL,     "0"),
741
  V(ExtendAllowPrivateAddresses, BOOL,     "1"),
742
743
744
  V(V3AuthVotingInterval,        INTERVAL, "5 minutes"),
  V(V3AuthVoteDelay,             INTERVAL, "20 seconds"),
  V(V3AuthDistDelay,             INTERVAL, "20 seconds"),
745
  V(TestingV3AuthInitialVotingInterval, INTERVAL, "150 seconds"),
746
747
748
749
  V(TestingV3AuthInitialVoteDelay, INTERVAL, "20 seconds"),
  V(TestingV3AuthInitialDistDelay, INTERVAL, "20 seconds"),
  V(TestingAuthDirTimeToLearnReachability, INTERVAL, "0 minutes"),
  V(TestingEstimatedDescriptorPropagationTime, INTERVAL, "0 minutes"),
750
  V(MinUptimeHidServDirectoryV2, INTERVAL, "0 minutes"),
751
752
753
754
755
756
  V(TestingServerDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(TestingClientDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(TestingServerConsensusDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(TestingClientConsensusDownloadInitialDelay, CSV_INTERVAL, "0"),
  V(TestingBridgeDownloadInitialDelay, CSV_INTERVAL, "10"),
  V(TestingBridgeBootstrapDownloadInitialDelay, CSV_INTERVAL, "0"),
757
758
  V(TestingClientMaxIntervalWithoutRequest, INTERVAL, "5 seconds"),
  V(TestingDirConnectionMaxStall, INTERVAL, "30 seconds"),
759
  V(TestingEnableConnBwEvent,    BOOL,     "1"),
760
  V(TestingEnableCellStatsEvent, BOOL,     "1"),
761
  VAR("___UsingTestNetworkDefaults", BOOL, UsingTestNetworkDefaults_, "1"),
762
  V(RendPostPeriod,              INTERVAL, "2 minutes"),
763

764
  END_OF_CONFIG_VARS
765
};
766

767
#undef VAR
768
#undef V
769
770
#undef OBSOLETE

771
static const config_deprecation_t option_deprecation_notes_[] = {
772
  /* Deprecated since 0.3.2.0-alpha. */
773
774
775
776
  { "HTTPProxy", "It only applies to direct unencrypted HTTP connections "
    "to your directory server, which your Tor probably wasn't using." },
  { "HTTPProxyAuthenticator", "HTTPProxy is deprecated in favor of HTTPSProxy "
    "which should be used with HTTPSProxyAuthenticator." },
777
778
779
  /* End of options deprecated since 0.3.2.1-alpha */

  /* Options deprecated since 0.3.2.2-alpha */
780
781
782
783
  { "ReachableDirAddresses", "It has no effect on relays, and has had no "
    "effect on clients since 0.2.8." },
  { "ClientPreferIPv6DirPort", "It has no effect on relays, and has had no "
    "effect on clients since 0.2.8." },
784
  /* End of options deprecated since 0.3.2.2-alpha. */