fix config name for {remote,local}_allow_list (#219)
This config option should be snake_case, not camelCase.
This commit is contained in:
8
main.go
8
main.go
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user