summaryrefslogtreecommitdiff
path: root/src/or/config.c
AgeCommit message (Collapse)Author
2014-04-15Uplift status.c unit test coverage with new test cases and macros.dana koch
A new set of unit test cases are provided, as well as introducing an alternative paradigm and macros to support it. Primarily, each test case is given its own namespace, in order to isolate tests from each other. We do this by in the usual fashion, by appending module and submodule names to our symbols. New macros assist by reducing friction for this and other tasks, like overriding a function in the global namespace with one in the current namespace, or declaring integer variables to assist tracking how many times a mock has been called. A set of tests for a small-scale module has been included in this commit, in order to highlight how the paradigm can be used. This suite gives 100% coverage to status.c in test execution.
2014-04-05Merge remote-tracking branch 'public/bug10801_024'Nick Mathewson
Conflicts: src/common/address.c src/or/config.c
2014-04-01Merge remote-tracking branch 'public/bug4645'Nick Mathewson
Conflicts: src/or/dirserv.c
2014-04-01Merge remote-tracking branch 'public/bug9870'Nick Mathewson
Conflicts: src/or/config.c
2014-03-31Merge branch 'bug8787_squashed'Nick Mathewson
2014-03-31Always check returns from unlink()Andrea Shepard
2014-03-27Don't do a DNS lookup on a bridge line addressNick Mathewson
Fixes bug 10801; bugfix on 07bf274d in 0.2.0.1-alpha.
2014-03-23Merge remote-tracking branch 'karsten/task-11070'Nick Mathewson
2014-03-18Appease make check-spacesAndrea Shepard
2014-03-18Take out remaining V1 directory code.Karsten Loesing
2014-03-10 Tone down the log message for when we don't need a PT proxy.George Kadianakis
2014-03-10Merge branch 'bug11043_take2_squashed'Nick Mathewson
2014-03-10Improve the log message for when the Extended ORPort is not enabled.George Kadianakis
2014-03-06Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2014-03-06Correct the URL in the "a relay on win95???" messageNick Mathewson
This is a fix for 9393; it's not a bugfix on any Tor version per se, but rather on whatever Tor version was current when we reorganized the wiki.
2014-03-05Rename PredictedCircsRelevanceTime->PredictedPortsRelevanceTimeNick Mathewson
All circuits are predictive; it's the ports that are expiring here.
2014-03-05Merge branch 'ticket9176_squashed'Nick Mathewson
Conflicts: doc/tor.1.txt
2014-03-05Lower the maximum for PrecictedCircsRelevanceTime to one hourNick Mathewson
2014-03-05Fixed spacing.unixninja92
2014-03-05Added max value to PredictedCircsRelevanceTime.unixninja92
2014-03-05PredictedCircsRelevanceTime: limit how long we predict a port will be usedunixninja92
By default, after you've made a connection to port XYZ, we assume you might still want to have an exit ready to connect to XYZ for one hour. This patch lets you lower that interval. Implements ticket 91
2014-03-04Merge branch 'bug10169_025_v2'Nick Mathewson
Conflicts: src/test/test.c
2014-02-28Merge remote-tracking branch 'karsten/task-5824'Nick Mathewson
2014-02-12Log only one message for dangerous log settings.Nick Mathewson
We log only one message, containing a complete list of what's wrong. We log the complete list whenever any of the possible things that could have gotten wrong gets worse. Fix for #9870. Bugfix on 10480dff01bece13fab, which we merged in 0.2.5.1-alpha.
2014-02-12Merge remote-tracking branch 'public/bug10169_024' into bug10169_025_v2Nick Mathewson
Conflicts: src/or/circuitlist.c
2014-02-11Remove TunnelDirConns and PreferTunnelledDirConnsNick Mathewson
These options were added back in 0.1.2.5-alpha, but no longer make any sense now that all directories support tunneled connections and BEGIN_DIR cells. These options were on by default; now they are always-on. This is a fix for 10849, where TunnelDirConns 0 would break hidden services -- and that bug arrived, I think, in 0.2.0.10-alpha.
2014-02-10Remove options for configuring HS authorities.Nick Mathewson
(There is no longer meaningfully any such thing as a HS authority, since we stopped uploading or downloading v0 hs descriptors in 0.2.2.1-alpha.) Implements #10881, and part of #10841.
2014-02-03Fixes for bug4645 fix.Nick Mathewson
2014-02-03Using proper functions to create tor_addr_t.rl1987
2014-02-03Removing is_internal_IP() function. Resolves ticket 4645.rl1987
2014-02-03TransProxyType replaces TransTPROXY optionNick Mathewson
I'm making this change now since ipfw will want its own option too, and proliferating options here isn't sensible. (See #10582 and #10267)
2014-02-03More fixes to rip out all of the v2 directory code.Karsten Loesing
(This was a squash commit, but I forgot to squash it. Sorry! --Nick)
2014-02-03Merge remote-tracking branch 'public/bug10758'Nick Mathewson
2014-02-02Move the friendly warning about TPROXY and root to EPERM timeNick Mathewson
I'm doing this because: * User doesn't mean you're running as root, and running as root doesn't mean you've set User. * It's possible that the user has done some other capability-based hack to retain the necessary privileges.
2014-01-31Add support for TPROXY via new TransTPRoxy optionNick Mathewson
Based on patch from "thomo" at #10582.
2014-01-29Rip out all of the v2 directory code.Nick Mathewson
The remaining vestige is that we continue to publish the V2dir flag, and that, for the controller, we continue to emit v2 directory formats when requested.
2014-01-03Merge remote-tracking branch 'public/bug10169_023' into bug10169_024Nick Mathewson
Conflicts: doc/tor.1.txt src/or/config.c src/or/or.h The conflicts were all pretty trivial.
2013-12-18Disable (Cell,Entry,ExitPort)Statistics on bridgesKarsten Loesing
In 0.2.3.8-alpha we attempted to "completely disable stats if we aren't running as a relay", but instead disabled them only if we aren't running as a server. This commit leaves DirReqStatistics enabled on both relays and bridges, and disables (Cell,Entry,ExitPort)Statistics on bridges.
2013-11-20Drop the MaxMemInQueues lower limit down to 256 MB.Nick Mathewson
on #9686, gmorehose reports that the 500 MB lower limit is too high for raspberry pi users.
2013-11-20Rename MaxMemInCellQueues to MaxMemInQueuesNick Mathewson
2013-11-18Merge branch 'backtrace_squashed'Nick Mathewson
Conflicts: src/common/sandbox.c src/common/sandbox.h src/common/util.c src/or/main.c src/test/include.am src/test/test.c
2013-11-18Unit tests for new functions in log.cNick Mathewson
2013-11-18Add a sighandler-safe logging mechanismNick Mathewson
We had accidentially grown two fake ones: one for backtrace.c, and one for sandbox.c. Let's do this properly instead. Now, when we configure logs, we keep track of fds that should get told about bad stuff happening from signal handlers. There's another entry point for these that avoids using non-signal-handler-safe functions.
2013-11-18Basic backtrace abilityNick Mathewson
On platforms with the backtrace/backtrace_symbols_fd interface, Tor can now dump stack traces on assertion failure. By default, I log them to DataDir/stack_dump and to stderr.
2013-11-10Merge remote-tracking branch 'origin/maint-0.2.4'Nick Mathewson
2013-11-10Fix a wide lineNick Mathewson
2013-11-10Change documentation DirServer->DirAuthorityNick Mathewson
We renamed the option, but we didn't actually fix it in the log messages or the docs. This patch does that. For #10124. Patch by sqrt2.
2013-11-07Implementing --allow-missing-torrc CLI option.rl1987
2013-11-01Merge branch 'prop221_squashed_024'Nick Mathewson
Conflicts: src/or/or.h
2013-11-01Implement proposal 221: Stop sending CREATE_FASTNick Mathewson
This makes FastFirstHopPK an AUTOBOOL; makes the default "auto"; and makes the behavior of "auto" be "look at the consensus."