From f38649f8b827509a46a11101892c8aaed09685a7 Mon Sep 17 00:00:00 2001 From: Roman Vynar Date: Fri, 2 Sep 2022 16:55:53 +0300 Subject: [PATCH] Fix config.BasePath --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index d22672c..1e37485 100644 --- a/config.go +++ b/config.go @@ -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.