diff options
| author | fengweihao <[email protected]> | 2023-07-03 18:25:03 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2023-07-03 18:25:03 +0800 |
| commit | 868da4f642615eced38f6c5e9247fcc5be4c67cd (patch) | |
| tree | 5c35d6c1f6e8e320ec058f6edd910344fdf5eb32 /plugin | |
| parent | fb0bc397e9d617740a32b04884482d4cd5aab9e5 (diff) | |
TSG-15781 删除策略用户自定域中的protocol字段检查v4.8.31-20230703
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/business/tsg-http/src/tsg_http.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp index b6a28e7..dbbcd94 100644 --- a/plugin/business/tsg-http/src/tsg_http.cpp +++ b/plugin/business/tsg-http/src/tsg_http.cpp @@ -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) { |
