aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-15 10:30:45 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-15 10:30:45 +0000
commitb1d3f124c46e954ef282c71586e34631e351c427 (patch)
treed6d17e0355d654e8ff2b74237d7eeda43e931077 /src
parent10ff72393860183f3379a6f678d1c381704058db (diff)
downloadtor-b1d3f124c46e954ef282c71586e34631e351c427.tar
tor-b1d3f124c46e954ef282c71586e34631e351c427.tar.gz
Permit transitioning from ORPort=0 to ORPort!=0, and back.
This is actually a bit more subtle, because we need to rotate the dnsworkers and cpuworkers if certain options (logs, orport, etc) change. Maybe set_options() should detect this and notify the caller that it should rotate them. Expect some mysterious crashes. svn:r4786
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/config.c b/src/or/config.c
index e1f0acc9b..1363d8566 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1955,11 +1955,6 @@ options_transition_allowed(or_options_t *old, or_options_t *new_val)
return -1;
}
- if (old->ORPort != new_val->ORPort) {
- log_fn(LOG_WARN,"While Tor is running, changing ORPort is not allowed. Failing.");
- return -1;
- }
-
if (strcmp(old->DataDirectory,new_val->DataDirectory)!=0) {
log_fn(LOG_WARN,"While Tor is running, changing DataDirectory (%s->%s) is not allowed. Failing.", old->DataDirectory, new_val->DataDirectory);
return -1;