Merge pull request #366 from yuanfeng0905/fix-fixconfig

fix: fixconfig
pull/375/head
Tony 5 years ago committed by GitHub
commit 85a67908bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/naming/discovery/discovery.go

@ -102,7 +102,7 @@ type appInfo struct {
}
func fixConfig(c *Config) error {
if len(c.Nodes) == 0 {
if len(c.Nodes) == 0 && env.DiscoveryNodes != "" {
c.Nodes = strings.Split(env.DiscoveryNodes, ",")
}
if c.Region == "" {

Loading…
Cancel
Save