summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2023-04-03 18:57:10 +0800
committerfengweihao <[email protected]>2023-04-03 18:57:10 +0800
commitca2f597634ed1545be41da0cc04e6877563f542f (patch)
treedd3b528124f3f31c6dae0e441ba10af7e41819dd
parent528725397659c8cb99661f980c5a3aca7619ff76 (diff)
bugfix: 修复笔误, 造成tunnel命中路径未合并v3.0.1-20230403
-rw-r--r--platform/src/verify_policy.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/src/verify_policy.cpp b/platform/src/verify_policy.cpp
index ce8ed18..7f5d15a 100644
--- a/platform/src/verify_policy.cpp
+++ b/platform/src/verify_policy.cpp
@@ -409,6 +409,23 @@ cJSON *get_query_from_request(const char *data, int thread_id)
for (subchild = attributes->child; subchild != NULL; subchild = subchild->next)
{
+ item = cJSON_GetObjectItem(subchild, "attributeName");
+ if(item && item->type==cJSON_String)
+ {
+ if(0 == strcasecmp(item->valuestring, "tunnel_endpointa"))
+ {
+ verify_policy_tunnle_add(ctx);
+ }
+
+ if(0 == strcasecmp(item->valuestring, "tunnel_endpointb"))
+ {
+ verify_policy_tunnle_add(ctx);
+ }
+ }
+ }
+
+ for (subchild = attributes->child; subchild != NULL; subchild = subchild->next)
+ {
xret = get_attribute_from_json(i, subchild, verify_policy);
if (xret < 0)
{