diff options
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | src/or/policies.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/policies.c b/src/or/policies.c index 6bff4e4dad..cb914d11f6 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -40,7 +40,7 @@ typedef struct policy_summary_item_t { uint16_t prt_min; /**< Lowest port number to accept/reject. */ uint16_t prt_max; /**< Highest port number to accept/reject. */ uint64_t reject_count; /**< Number of IP-Addresses that are rejected to - this portrange. */ + this port range. */ int accepted:1; /** Has this port already been accepted */ } policy_summary_item_t; @@ -795,7 +795,7 @@ exit_policy_remove_redundancies(smartlist_t *dest) * (accept/reject), A is a subset of B, and there is no other entry of * different type in between those two that intersects with A. * - * Anybody want to doublecheck the logic here? XXX + * Anybody want to double-check the logic here? XXX */ for (i = 0; i < smartlist_len(dest)-1; ++i) { ap = smartlist_get(dest, i); @@ -1136,8 +1136,8 @@ policy_summary_add_item(smartlist_t *summary, addr_policy_t *p) } /** Create a string representing a summary for an exit policy. - * The summary will either be an "accept" plus a comma-seperated list of port - * ranges or a "reject" plus portranges, depending on which is shorter. + * The summary will either be an "accept" plus a comma-separated list of port + * ranges or a "reject" plus port-ranges, depending on which is shorter. * * If no exits are allowed at all then NULL is returned, if no ports * are blocked instead of "reject " we return "accept 1-65535" (this |