diff options
author | Roger Dingledine <arma@torproject.org> | 2004-08-06 10:12:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-08-06 10:12:55 +0000 |
commit | f8c14e5dce8b57dd40ad331e86ad9feab9f46c8c (patch) | |
tree | b19245ea0f56ac77386c7a776063102d655a3bef | |
parent | 59a356ea476ec8438e345b8695e9faf73b79c0a8 (diff) | |
download | tor-f8c14e5dce8b57dd40ad331e86ad9feab9f46c8c.tar.gz tor-f8c14e5dce8b57dd40ad331e86ad9feab9f46c8c.zip |
make explicit that 'no socks policy' means 'accept'
svn:r2158
-rw-r--r-- | src/or/connection_edge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 35500309ea..3cbd6ce2b8 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -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; |