mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Block the port-forwarding helper at a higher point
This commit is contained in:
parent
eb43401bfb
commit
801aa5d03b
@ -3575,6 +3575,10 @@ options_validate(or_options_t *old_options, or_options_t *options,
|
||||
REJECT("PortForwarding is not compatible with Sandbox; at most one can "
|
||||
"be set");
|
||||
}
|
||||
if (options->PortForwarding && options->NoExec) {
|
||||
COMPLAIN("Both PortForwarding and NoExec are set; PortForwarding will "
|
||||
"be ignored.");
|
||||
}
|
||||
|
||||
if (ensure_bandwidth_cap(&options->BandwidthRate,
|
||||
"BandwidthRate", msg) < 0)
|
||||
|
@ -2036,7 +2036,8 @@ check_fw_helper_app_callback(time_t now, const or_options_t *options)
|
||||
{
|
||||
if (net_is_disabled() ||
|
||||
! server_mode(options) ||
|
||||
! options->PortForwarding) {
|
||||
! options->PortForwarding ||
|
||||
options->NoExec) {
|
||||
return PERIODIC_EVENT_NO_UPDATE;
|
||||
}
|
||||
/* 11. check the port forwarding app */
|
||||
|
Loading…
Reference in New Issue
Block a user