mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-26 04:10:18 +01:00
fix http-auth-ip-whitelist
This commit is contained in:
parent
4d8b442576
commit
95c7e675a0
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ func New() *Cmd {
|
||||||
if httpAuthIPWhitelist := c.String("http-auth-ip-whitelist"); httpAuthIPWhitelist != "" {
|
if httpAuthIPWhitelist := c.String("http-auth-ip-whitelist"); httpAuthIPWhitelist != "" {
|
||||||
ipFilterOptions := server.IPFilterOptions{}
|
ipFilterOptions := server.IPFilterOptions{}
|
||||||
ipFilterOptions.AllowedIPs = strings.Split(httpAuthIPWhitelist, ",")
|
ipFilterOptions.AllowedIPs = strings.Split(httpAuthIPWhitelist, ",")
|
||||||
ipFilterOptions.BlockByDefault = false
|
ipFilterOptions.BlockByDefault = true
|
||||||
options = append(options, server.HTTPAUTHFilterOptions(ipFilterOptions))
|
options = append(options, server.HTTPAUTHFilterOptions(ipFilterOptions))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue