X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fagent%2Fapiv1-config.go;h=0b1e2000f702e509066348b38cf92bec97b9466c;hb=d0d64817590d38d182faeb0e040861d3d3cb9f3b;hp=bd4da33102a470895ed8b774ee545dc779df8ddd;hpb=f75d24ca885690289c16adeac0e5c5e7bb56e36c;p=src%2Fxds%2Fxds-agent.git 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,