1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #1186, refactor security check. 3.0.114

This commit is contained in:
winlin 2020-02-04 19:33:11 +08:00
parent b9d45ba7d9
commit a99cee2819

View file

@ -113,7 +113,7 @@ srs_error_t SrsSecurity::allow_check(SrsConfDirective* rules, SrsRtmpConnType ty
} }
if (allow_rules > 0 || (deny_rules + allow_rules) == 0) { if (allow_rules > 0 || (deny_rules + allow_rules) == 0) {
return srs_error_new(ERROR_SYSTEM_SECURITY_ALLOW, "not allowed by any of %d rules", allow_rules); return srs_error_new(ERROR_SYSTEM_SECURITY_ALLOW, "not allowed by any of %d/%d rules", allow_rules, deny_rules);
} }
return srs_success; // OK return srs_success; // OK
} }