mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Add a "reject *:*" line after parsing in parse_reachable_addresses()
This commit is contained in:
parent
fe18776349
commit
f80cfc4476
@ -317,6 +317,14 @@ parse_reachable_addresses(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Prepend a reject *.* to reachable_(or|dir)_addr_policy */
|
||||
if (!ret && (options->ReachableDirAddresses ||
|
||||
options->ReachableORAddresses ||
|
||||
options->ReachableAddresses)) {
|
||||
append_exit_policy_string(&reachable_or_addr_policy, "reject *:*");
|
||||
append_exit_policy_string(&reachable_dir_addr_policy, "reject *:*");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user