fix config name for {remote,local}_allow_list (#219)

This config option should be snake_case, not camelCase.
This commit is contained in:
Wade Simmons
2020-04-08 16:20:12 -04:00
committed by GitHub
parent 0a474e757b
commit 4f6313ebd3
4 changed files with 11 additions and 11 deletions

View File

@ -228,15 +228,15 @@ func Main(configPath string, configTest bool, buildVersion string) {
punchy.Delay,
)
remoteAllowList, err := config.GetAllowList("lighthouse.remoteAllowList", false)
remoteAllowList, err := config.GetAllowList("lighthouse.remote_allow_list", false)
if err != nil {
l.WithError(err).Fatal("Invalid lighthouse.remoteAllowList")
l.WithError(err).Fatal("Invalid lighthouse.remote_allow_list")
}
lightHouse.SetRemoteAllowList(remoteAllowList)
localAllowList, err := config.GetAllowList("lighthouse.localAllowList", true)
localAllowList, err := config.GetAllowList("lighthouse.local_allow_list", true)
if err != nil {
l.WithError(err).Fatal("Invalid lighthouse.localAllowList")
l.WithError(err).Fatal("Invalid lighthouse.local_allow_list")
}
lightHouse.SetLocalAllowList(localAllowList)