mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-23 20:49:13 -05:00
prevent gookit/config to merge proxy values with default values
This commit is contained in:
@@ -44,6 +44,10 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
|
||||
if cfg.Policies == nil {
|
||||
cfg.Policies = config.DefaultPolicies()
|
||||
}
|
||||
|
||||
if cfg.HTTP.Root != "/" {
|
||||
cfg.HTTP.Root = strings.TrimSuffix(cfg.HTTP.Root, "/")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user