Fix config.BasePath

This commit is contained in:
Roman Vynar 2022-09-02 16:55:53 +03:00
parent 0695e3f777
commit f38649f8b8

View File

@ -56,8 +56,9 @@ func readConfig(configFile string) *configData {
}
// Normalize base path.
config.BasePath = strings.Trim(config.BasePath, "/")
if config.BasePath != "" {
config.BasePath = "/" + strings.Trim(config.BasePath, "/")
config.BasePath = "/" + config.BasePath
}
// Read password from file.