Explorar o código

log a notice when disablenetwork is set

Nick Mathewson %!s(int64=14) %!d(string=hai) anos
pai
achega
116dd4ae4f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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();
     }
   }