mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-25 21:38:59 +02:00
commit
85a67908bc
@ -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…
x
Reference in New Issue
Block a user