Explorar o código

Trivial doc fix for exit_policy_is_general_exit_helper

The original comment said what it did if there was at least one /8 that
allowed access to the port, but not what it did otherwise.
Nick Mathewson %!s(int64=16) %!d(string=hai) anos
pai
achega
ba0c9e5d03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/policies.c

+ 1 - 1
src/or/policies.c

@@ -866,7 +866,7 @@ policies_set_router_exitpolicy_to_reject_all(routerinfo_t *r)
 }
 }
 
 
 /** Return 1 if there is at least one /8 subnet in <b>policy</b> that
 /** Return 1 if there is at least one /8 subnet in <b>policy</b> that
- * allows exiting to <b>port</b>. */
+ * allows exiting to <b>port</b>.  Otherwise, return 0. */
 static int
 static int
 exit_policy_is_general_exit_helper(smartlist_t *policy, int port)
 exit_policy_is_general_exit_helper(smartlist_t *policy, int port)
 {
 {