/// See also: allowed().
bool denied() const { return code == ACCESS_DENIED; }
- /// whether there was either a default rule, a rule without any ACLs, or a
- /// a rule with ACLs that all matched
- bool someRuleMatched() const { return allowed() || denied(); }
+ /// whether Squid is uncertain about the allowed() or denied() answer
+ bool conflicted() const { return !allowed() && !denied(); }
aclMatchCode code; ///< ACCESS_* code
int kind; ///< which custom access list verb matched
request->x_forwarded_for_iterator.clean();
request->flags.done_follow_x_forwarded_for = true;
- if (!answer.someRuleMatched()) {
+ if (answer.conflicted()) {
debugs(28, DBG_CRITICAL, "ERROR: Processing X-Forwarded-For. Stopping at IP address: " << request->indirect_client_addr );
}