Add server list as another variable, allowing the use of configs/secrets
This commit is contained in:
parent
cce0739a9b
commit
bb36b4f9e1
|
@ -48,7 +48,9 @@ func NewResolver(c ResolvSettings) *Resolver {
|
||||||
config: &c,
|
config: &c,
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(c.ServerListFile) > 0 {
|
if serverList := os.Getenv("SERVER_LIST_FILE"); serverList != "" {
|
||||||
|
r.ReadServerListFile(serverList)
|
||||||
|
} else if len(c.ServerListFile) > 0 {
|
||||||
r.ReadServerListFile(c.ServerListFile)
|
r.ReadServerListFile(c.ServerListFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue