log a notice when disablenetwork is set

This commit is contained in:
Nick Mathewson 2011-11-28 16:07:13 -05:00
parent f4d8ed4b28
commit 116dd4ae4f

View File

@ -1105,6 +1105,9 @@ options_act_reversible(const or_options_t *old_options, char **msg)
} }
if (options->DisableNetwork) { if (options->DisableNetwork) {
/* Aggressively close non-controller stuff, NOW */ /* 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(); connection_mark_all_noncontrol_connections();
} }
} }