* 修改策略编译配置表关于协议字段处理

This commit is contained in:
fengweihao
2019-11-25 11:34:14 +08:00
parent 937bc53f96
commit 5ea8bec8ad
2 changed files with 3 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ void policy_table_ex_data_new_cb(int table_id, const char * key, const char * ta
TFE_LOG_ERROR(instance->logger, "invalid JSON, protocol not existed or invalid type.");
goto ignore;
}
if (0!=strcasecmp(json_item->valuestring, "SSL/HTTP"))
if(0!=strcasecmp(json_item->valuestring, "SSL")&& 0!=strcasecmp(json_item->valuestring, "HTTP"))
{
goto out;
}
@@ -527,7 +527,7 @@ int traffic_mirror_init(struct tfe_proxy * proxy)
if(unlikely(result < 0))
{
TFE_LOG_ERROR(instance->logger, "failed at Maat_plugin_EX_register(PXY_INTERCEPT_COMPILE), "
TFE_LOG_ERROR(instance->logger, "failed at Maat_plugin_EX_register(TSG_SECURITY_COMPILE), "
"table_id = %d, ret = %d", instance->policy_table_id, result);
goto errout;
}