瀏覽代碼

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
Roger Dingledine 19 年之前
父節點
當前提交
b1d3f124c4
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      src/or/config.c

+ 0 - 5
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;