Add server list as another variable, allowing the use of configs/secrets
This commit is contained in:
		| @ -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) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user