diff --git a/resolver.go b/resolver.go index 1fbace8..4cb41ab 100644 --- a/resolver.go +++ b/resolver.go @@ -48,7 +48,9 @@ func NewResolver(c ResolvSettings) *Resolver { 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) }