diff options
| author | 刘学利 <[email protected]> | 2021-07-10 03:40:39 +0000 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2021-07-10 03:40:39 +0000 |
| commit | 0320b4b33f423241c5cb0e72327ca6fb8bb66717 (patch) | |
| tree | 8e8840b1255493bc862605ada132a23c46c406c3 /src/tsg_rule.cpp | |
| parent | 0840cf3969da37dc3d1932e3ab1dbdfd69ec71a4 (diff) | |
Feature copy allow deny result to projectv5.0.2
Diffstat (limited to 'src/tsg_rule.cpp')
| -rw-r--r-- | src/tsg_rule.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index 5b92afc..821e078 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -1027,7 +1027,7 @@ int tsg_pull_policy_result(struct streaminfo *a_stream, PULL_RESULT_TYPE pull_re label=(policy_priority_label_t *)project_req_get_struct(a_stream, g_tsg_para.priority_project_id); if(label!=NULL && result!=NULL && result_num>0 && identify_info!=NULL) { - if(label->result_type==pull_result_type) + if((label->result_type==pull_result_type) || (pull_result_type==PULL_ALL_RESULT)) { num=MIN(label->result_num, result_num); memcpy(result, label->result, num*sizeof(Maat_rule_t)); @@ -1042,19 +1042,6 @@ int tsg_pull_policy_result(struct streaminfo *a_stream, PULL_RESULT_TYPE pull_re return num; } - - MESA_handle_runtime_log(g_tsg_para.logger, - RLOG_LV_DEBUG, - "PULL_RESULT", - "pull policy failed, hit: %s %s: %s policy_id: %d service: %d action: %d addr: %s", - (label->result_type==PULL_KNI_RESULT) ? "KNI" : "FW", - label->proto==PROTO_HTTP ? "host" : "sni", - label->domain, - label->result->config_id, - label->result->service_id, - label->result->action, - PRINTADDR(a_stream, g_tsg_para.level) - ); } return 0; |
