summaryrefslogtreecommitdiffstats
path: root/lib/agent/apiv1-config.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-05 11:02:56 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-05 11:02:56 +0100
commitd0d64817590d38d182faeb0e040861d3d3cb9f3b (patch)
treed96a612511e10375aaa4c6ed8552c6c813b71548 /lib/agent/apiv1-config.go
parentf75d24ca885690289c16adeac0e5c5e7bb56e36c (diff)
Fixed XDS Server connection lost and reconnection.
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,