From a99cee28193ba7da5a098e66841633592684c718 Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 4 Feb 2020 19:33:11 +0800 Subject: [PATCH] For #1186, refactor security check. 3.0.114 --- trunk/src/app/srs_app_security.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_security.cpp b/trunk/src/app/srs_app_security.cpp index aabad0800..812766f08 100644 --- a/trunk/src/app/srs_app_security.cpp +++ b/trunk/src/app/srs_app_security.cpp @@ -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 }