fix http-auth-ip-whitelist

This commit is contained in:
Andrea Spacca 2023-12-04 14:36:57 +09:00
parent 4d8b442576
commit 95c7e675a0

View file

@ -461,7 +461,7 @@ func New() *Cmd {
if httpAuthIPWhitelist := c.String("http-auth-ip-whitelist"); httpAuthIPWhitelist != "" {
ipFilterOptions := server.IPFilterOptions{}
ipFilterOptions.AllowedIPs = strings.Split(httpAuthIPWhitelist, ",")
ipFilterOptions.BlockByDefault = false
ipFilterOptions.BlockByDefault = true
options = append(options, server.HTTPAUTHFilterOptions(ipFilterOptions))
}