From e8bc9b94037a1d71728d4fb1f3c2e615485b69e3 Mon Sep 17 00:00:00 2001 From: Tsui Jie Date: Mon, 7 Aug 2023 09:10:36 +0800 Subject: [PATCH] fix: upstream discovery args metadata field caused crash. (#2832) --- api/internal/core/entity/entity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/internal/core/entity/entity.go b/api/internal/core/entity/entity.go index b8de0a9e0..c061f4703 100644 --- a/api/internal/core/entity/entity.go +++ b/api/internal/core/entity/entity.go @@ -171,7 +171,7 @@ type UpstreamDef struct { Key string `json:"key,omitempty"` Scheme string `json:"scheme,omitempty"` DiscoveryType string `json:"discovery_type,omitempty"` - DiscoveryArgs map[string]string `json:"discovery_args,omitempty"` + DiscoveryArgs map[string]interface{} `json:"discovery_args,omitempty"` PassHost string `json:"pass_host,omitempty"` UpstreamHost string `json:"upstream_host,omitempty"` Name string `json:"name,omitempty"`