Browse Source

log a notice when disablenetwork is set

Nick Mathewson 14 years ago
parent
commit
116dd4ae4f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/config.c

+ 3 - 0
src/or/config.c

@@ -1105,6 +1105,9 @@ options_act_reversible(const or_options_t *old_options, char **msg)
     }
     if (options->DisableNetwork) {
       /* Aggressively close non-controller stuff, NOW */
+      log_notice(LD_NET, "DisableNetwork is set. Tor will not make or accept "
+                 "non-control network connections. Shutting down all existing "
+                 "connections.");
       connection_mark_all_noncontrol_connections();
     }
   }