authority publishes, or accepted as an OR address in any descriptor
submitted for publication by this authority.
-**AuthDirBadDirCC** __CC__,... +
+**AuthDirBadDirCCs** __CC__,... +
-**AuthDirBadExitCC** __CC__,... +
+**AuthDirBadExitCCs** __CC__,... +
-**AuthDirInvalidCC** __CC__,... +
+**AuthDirInvalidCCs** __CC__,... +
-**AuthDirRejectCC** __CC__,...::
+**AuthDirRejectCCs** __CC__,...::
Authoritative directories only. These options contain a comma-separated
list of country codes such that any server in one of those country codes
will be marked as a bad directory/bad exit/invalid for use, or rejected
V(AlternateHSAuthority, LINELIST, NULL),
V(AssumeReachable, BOOL, "0"),
V(AuthDirBadDir, LINELIST, NULL),
- V(AuthDirBadDirCC, CSV, ""),
+ V(AuthDirBadDirCCs, CSV, ""),
V(AuthDirBadExit, LINELIST, NULL),
- V(AuthDirBadExitCC, CSV, ""),
+ V(AuthDirBadExitCCs, CSV, ""),
V(AuthDirInvalid, LINELIST, NULL),
- V(AuthDirInvalidCC, CSV, ""),
+ V(AuthDirInvalidCCs, CSV, ""),
V(AuthDirFastGuarantee, MEMUNIT, "100 KB"),
V(AuthDirGuardBWGuarantee, MEMUNIT, "250 KB"),
V(AuthDirReject, LINELIST, NULL),
- V(AuthDirRejectCC, CSV, ""),
+ V(AuthDirRejectCCs, CSV, ""),
V(AuthDirRejectUnlisted, BOOL, "0"),
V(AuthDirListBadDirs, BOOL, "0"),
V(AuthDirListBadExits, BOOL, "0"),
* never mark as valid. */
/** @name AuthDir...CC
*
- * Lists of of country codes to mark as BadDir, BadExit, or Invalid, or to
+ * Lists of country codes to mark as BadDir, BadExit, or Invalid, or to
* reject entirely.
*
* @{
*/
- smartlist_t *AuthDirBadDirCC;
- smartlist_t *AuthDirBadExitCC;
- smartlist_t *AuthDirInvalidCC;
- smartlist_t *AuthDirRejectCC;
+ smartlist_t *AuthDirBadDirCCs;
+ smartlist_t *AuthDirBadExitCCs;
+ smartlist_t *AuthDirInvalidCCs;
+ smartlist_t *AuthDirRejectCCs;
/**@}*/
int AuthDirListBadDirs; /**< True iff we should list bad dirs,
{
if (! addr_policy_permits_address(addr, port, authdir_reject_policy))
return 0;
- return !addr_is_in_cc_list(addr, get_options()->AuthDirRejectCC);
+ return !addr_is_in_cc_list(addr, get_options()->AuthDirRejectCCs);
}
/** Return 1 if <b>addr</b>:<b>port</b> is considered valid in our
{
if (! addr_policy_permits_address(addr, port, authdir_invalid_policy))
return 0;
- return !addr_is_in_cc_list(addr, get_options()->AuthDirInvalidCC);
+ return !addr_is_in_cc_list(addr, get_options()->AuthDirInvalidCCs);
}
/** Return 1 if <b>addr</b>:<b>port</b> should be marked as a bad dir,
{
if (! addr_policy_permits_address(addr, port, authdir_baddir_policy))
return 1;
- return addr_is_in_cc_list(addr, get_options()->AuthDirBadDirCC);
+ return addr_is_in_cc_list(addr, get_options()->AuthDirBadDirCCs);
}
/** Return 1 if <b>addr</b>:<b>port</b> should be marked as a bad exit,
{
if (! addr_policy_permits_address(addr, port, authdir_badexit_policy))
return 1;
- return addr_is_in_cc_list(addr, get_options()->AuthDirBadExitCC);
+ return addr_is_in_cc_list(addr, get_options()->AuthDirBadExitCCs);
}
#define REJECT(arg) \