TSG-15204 TFE适配拦截策略user_region中删除protocol字段
This commit is contained in:
@@ -73,17 +73,6 @@ static void intercept_param_new_cb(const char *table_name, int table_id, const c
|
||||
}
|
||||
vsys_id = item->valueint;
|
||||
|
||||
item = cJSON_GetObjectItem(json, "protocol");
|
||||
if (unlikely(!item || !cJSON_IsString(item)))
|
||||
{
|
||||
TFE_LOG_ERROR(enforcer->logger, "Invalid intercept parameter: %s invalid protocol format", key);
|
||||
goto error_out;
|
||||
}
|
||||
if (0 != strcasecmp(item->valuestring, "SSL") && 0 != strcasecmp(item->valuestring, "HTTP"))
|
||||
{
|
||||
goto error_out;
|
||||
}
|
||||
|
||||
param = ALLOC(struct intercept_param, 1);
|
||||
param->vsys_id = vsys_id;
|
||||
param->rule_id = atoll(key);
|
||||
|
||||
Reference in New Issue
Block a user