mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-10 00:29:01 +02:00
fix: fixconfig
This commit is contained in:
parent
ccf31cfdb0
commit
ccb63f06a3
@ -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…
Reference in New Issue
Block a user