aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
AgeCommit message (Collapse)Author
2017-10-24Merge branch 'feature18329_029_squashed' into maint-0.3.2Nick Mathewson
2017-10-24test: Add unittest for descriptors with BridgeDistribution option.Isis Lovecruft
2017-10-24doc: Improve documentation for check_bridge_distribution_setting().Isis Lovecruft
2017-10-24Always set bridge-distribution-request on bridges' descriptors.Nick Mathewson
Also, warn the user if the BridgeDistribution option is unrecognized, and reject the value if it is invalid.
2017-10-24Add new BridgeDistribution config optionRoger Dingledine
Bridge relays can use it to add a "bridge-distribution-request" line to their bridge descriptor, which tells BridgeDB how they'd like their bridge address to be given out. Implements tickets 18329.
2017-10-23Have LOG_PROTOCOL_WARN call its own functionNick Mathewson
Also, make the function that implements LOG_PROTOCOL_WARN use a cached value of the desired loglevel, rather than calling get_options().
2017-10-23Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-10-23Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-10-23Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-10-23Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-10-23Merge branch 'maint-0.2.5' into maint-0.2.8Nick Mathewson
2017-10-23dirauth: Add bastet to the default authoritiesDavid Goulet
Fixes #23910 Based on a patch by dgoulet; backported to 0.2.5
2017-10-23Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-10-23Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-10-23Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-10-23Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-10-23Merge branch 'maint-0.2.5' into maint-0.2.8Nick Mathewson
2017-10-17Update Longclaw's IP address; fixes 23592.Nick Mathewson
2017-09-26Add test to make sure all confparse variables are well-typedNick Mathewson
New approach, suggested by Taylor: During testing builds, we initialize a union member of an appropriate pointer type with the address of the member field we're trying to test, so we can make sure that the compiler doesn't warn. My earlier approach invoked undefined behavior.
2017-09-20Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-09-20Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-09-20Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-09-20Merge branch 'maint-0.3.1'Nick Mathewson
2017-09-20Remove longclaw's IPv6 address, as it will soon changeteor
Authority IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves 3/8 directory authorities with IPv6 addresses, but there are also 52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
2017-09-18Correct what-is-deprecated-when commentsNick Mathewson
2017-09-18Merge remote-tracking branch 'public/ticket19704'Nick Mathewson
2017-09-15Replace accumulated C ;;s with ;sNick Mathewson
I don't know where these came from.
2017-09-15Merge branch 'scan-build-032'Nick Mathewson
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-09-15Merge branch 'remove_allow_dotexit_v2'Nick Mathewson
2017-09-15Remove AllowDotExit.Nick Mathewson
It's been deprecated since 0.2.9.2-alpha. Closes ticket 23426.
2017-09-15Merge remote-tracking branch 'dgoulet/ticket12541_032_02'Nick Mathewson
2017-09-15sched: Add Schedulers torrc optionDavid Goulet
This option is a list of possible scheduler type tor can use ordered by priority. Its default value is "KIST,KISTLite,Vanilla" which means that KIST will be used first and if unavailable will fallback to KISTLite and so on. Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-09-15sched: validate KIST sched optionsMatt Traudt
2017-09-15sched: Implement the KIST schedulerMatt Traudt
Closes #12541 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-09-15sched: Remove vanilla sched options that will be going awayMatt Traudt
- massive change to src/tgest/test_options.c since the sched options were added all over the place in it - removing the sched options caused some tests to pass/fail in new ways so I assumed current behavior is correct and made them pass again - ex: "ConnLimit must be greater" lines - ex: "Authoritative directory servers must" line - remove test_options_validate__scheduler in prep for new sched tests Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-09-12Fix warnings about passing uninitialized buffers into functionsNick Mathewson
Most of these buffers were never actually inspected, but it's still bad style.
2017-09-12Remove redundant items from testing_tor_network_defaultsNick Mathewson
These items were listed in testing_tor_network_defaults, but had the same defaults as with the regular settings. Closes ticket 22532.
2017-09-12Deprecate ReachableDirAddresses and ClientPreferIPv6DirPortNick Mathewson
Closes ticket 19704.
2017-09-12Merge branch 'ticket21031'Nick Mathewson
2017-09-12Merge branch 'bug23347_squashed'Nick Mathewson
2017-09-12Make clients wait to refresh bridges when they have a recent descriptorteor
But when clients are just starting, make them try each bridge a few times before giving up on it. These changes make the bridge download schedules more explicit: before 17750, they relied on undocumented behaviour and specific schedule entries. (And between 17750 and this fix, they were broken.) Fixes 23347, not in any released version of tor.
2017-09-12Make bridge clients download bridge descriptors immediatelyteor
The download schedule tells Tor to wait 15 minutes before downloading bridge descriptors. But 17750 made Tor ignore that and start immediately. Since we fixed 17750, Tor waits 15 minutes for bridge client bootstrap, like the schedule says. This fixes the download schedule to start immediately, and to try each bridge 3 times in the first 30 seconds. This should make bridge bootstraps more reliable. Fixes 23347.
2017-09-12Whoops -- options_trial_assign() was calling get_options() in #22281Nick Mathewson
So, move the get_options() call.
2017-09-11Merge branch 'ticket22281_squashed'Nick Mathewson
2017-09-11Taboo the get_options() function while options are validatingNick Mathewson
When option validation or transition is happening, there are no "current options" -- only "old options" and "maybe new options". Looking at get_options() is likely a mistake, so have a nonfatal assertion let us know if we do that. Closes 22281.
2017-09-08Merge branch 'ticket20119'Nick Mathewson
2017-09-07Make ClientDNSRejectInternalAddresses testing-only.Nick Mathewson
Undeprecate it; rename it to TestingClientDNSRejectInternalAddresses; add the old name as an alias; reject configurations where it is set but TestingTorNetwork is not; change the documentation accordingly. Closes tickets 21031 and 21522.
2017-09-06Exit when we can't write to a configured pid fileNick Mathewson
This is probably what the user wants, according to 20119.
2017-09-06Reject torrc if RunAsDaemon is given with relative paths.Nick Mathewson
The chdir() call in RunAsDaemon makes the behavior here surprising, and either way of trying to resolve the surprise seems sure to startle a significant fraction of users. Instead, let's refuse to guess, and refuse these configurations. Closes ticket 22731.