diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-05-12 14:04:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-12 14:04:51 -0400 |
commit | a271c5370a25c917512e8ef45aba921b04ff157a (patch) | |
tree | 5285ffcd36fb953095650b0109709e3176490a1f /src | |
parent | 5fc08d192005e728668c7ae0aa3ac17b69dc114b (diff) | |
parent | a28215a150818b11e128f5f5aeb44e53a40d5af7 (diff) | |
download | tor-a271c5370a25c917512e8ef45aba921b04ff157a.tar.gz tor-a271c5370a25c917512e8ef45aba921b04ff157a.zip |
Merge commit 'origin/maint-0.2.1' into m3
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 93177a166c..1ac38039ef 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3013,6 +3013,18 @@ options_validate(or_options_t *old_options, or_options_t *options, REJECT("TransPort and TransListenAddress are disabled in this build."); #endif +#ifndef MS_WINDOWS + if (options->AccountingMax && + (options->DirPort < 1024 || options->ORPort < 1024)) + log(LOG_WARN, LD_CONFIG, + "You have set AccountingMax to use hibernation. You have also " + "chosen a low DirPort or OrPort. This combination can make Tor stop " + "working when it tries to re-attach the port after a period of " + "hibernation. Please choose a different port or turn off " + "hibernation unless you know this combination will work on your " + "platform."); +#endif + if (options->ExcludeExitNodes || options->ExcludeNodes) { options->_ExcludeExitNodesUnion = routerset_new(); routerset_union(options->_ExcludeExitNodesUnion,options->ExcludeExitNodes); |