TSG-15204 TFE适配拦截策略user_region中删除protocol字段

This commit is contained in:
luwenpeng
2023-05-26 14:46:36 +08:00
parent 8082a3f9e8
commit d7cf27a0a1
2 changed files with 0 additions and 22 deletions

View File

@@ -85,17 +85,6 @@ void policy_table_ex_data_new_cb(const char *table_name, int table_id, const cha
goto ignore;
}
json_item=cJSON_GetObjectItem(json_root, "protocol");
if (unlikely(!json_item || !cJSON_IsString(json_item)))
{
TFE_LOG_ERROR(instance->logger, "invalid JSON, protocol not existed or invalid type.");
goto ignore;
}
if(0!=strcasecmp(json_item->valuestring, "SSL")&& 0!=strcasecmp(json_item->valuestring, "HTTP"))
{
goto out;
}
json_subroot = cJSON_GetObjectItem(json_root, "traffic_mirror");
if (unlikely(!json_subroot))
{