TSG-15781 删除策略用户自定域中的protocol字段检查
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user