summaryrefslogtreecommitdiffstats
path: root/lib/agent/apiv1-config.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/agent/apiv1-config.go')
-rw-r--r--lib/agent/apiv1-config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/agent/apiv1-config.go b/lib/agent/apiv1-config.go
index bd4da33..0b1e200 100644
--- a/lib/agent/apiv1-config.go
+++ b/lib/agent/apiv1-config.go
@@ -68,6 +68,9 @@ func (s *APIService) setConfig(c *gin.Context) {
// Add new XDS Server
for _, svr := range cfgArg.Servers {
+ if svr.Connected && svr.ID != "" {
+ continue
+ }
cfg := xdsconfig.XDSServerConf{
ID: svr.ID,
URL: svr.URL,