Skip to content

Commit

Permalink
fix http-auth-ip-whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
aspacca committed Dec 4, 2023
1 parent 4d8b442 commit 95c7e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 95c7e67

Please sign in to comment.