mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-15 07:11:15 +00:00
sanitize external_url, remove trailing slashes
This commit is contained in:
@@ -190,6 +190,8 @@ func GetConfig() (*Config, error) {
|
||||
return nil, fmt.Errorf("failed to load config from yaml: %w", err)
|
||||
}
|
||||
|
||||
cfg.Web.Sanitize()
|
||||
|
||||
return cfg, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user