mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
make explicit that 'no socks policy' means 'accept'
svn:r2158
This commit is contained in:
parent
59a356ea47
commit
f8c14e5dce
@ -985,6 +985,8 @@ int socks_policy_permits_address(uint32_t addr)
|
||||
if (options.SocksPolicy && !socks_policy)
|
||||
parse_socks_policy();
|
||||
|
||||
if(!socks_policy)
|
||||
return 1;
|
||||
a = router_compare_addr_to_exit_policy(addr, 1, socks_policy);
|
||||
if (a==-1)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user