TSG-15781 删除策略用户自定域中的protocol字段检查

This commit is contained in:
fengweihao
2023-07-03 18:25:03 +08:00
parent fb0bc397e9
commit 868da4f642

View File

@@ -458,13 +458,6 @@ void policy_action_param_new(const char *table_name, int table_id, const char* k
return;
}
item=cJSON_GetObjectItem(json, "protocol");
if(unlikely(!item || !cJSON_IsString(item)))
{
TFE_LOG_ERROR(g_proxy_rt->local_logger, "Invalid policy parameter: %lld invalid protocol format", config_id);
goto error_out;
}
param=ALLOC(struct policy_action_param, 1);
param->ref_cnt=1;
param->hit_rule.action=action;
@@ -474,12 +467,6 @@ void policy_action_param_new(const char *table_name, int table_id, const char* k
param->hit_rule.srv_def_large=tfe_strdup(srv_def_large);
pthread_mutex_init(&(param->lock), NULL);
if(0!=strcasecmp(item->valuestring, "http"))
{
*ad=param;
goto error_out;
}
item=cJSON_GetObjectItem(json,"method");
if(item && item->type==cJSON_String)
{