mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 11:21:52 +00:00
For #1186, refactor security check. 3.0.114
This commit is contained in:
parent
b9d45ba7d9
commit
a99cee2819
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ srs_error_t SrsSecurity::allow_check(SrsConfDirective* rules, SrsRtmpConnType ty
|
|||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue