Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fixed XDS Server connection lost and reconnection.
[src/xds/xds-agent.git]
/
lib
/
agent
/
apiv1-config.go
diff --git
a/lib/agent/apiv1-config.go
b/lib/agent/apiv1-config.go
index
bd4da33
..
0b1e200
100644
(file)
--- 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,