From 0e5a3d7361fe144efae3def7522af60be1b4cacf Mon Sep 17 00:00:00 2001 From: MarekWojt Date: Sun, 20 Mar 2022 02:18:46 +0100 Subject: [PATCH] fix using / in path --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc3e4be..3f73060 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Default: `auth.toml` ### --data-path Will define where stored data is put (i.e. IP addresses for subdomains). All records will be saved here every second if they have been changed and when the application gets shut down. Type: `string` -Default: `./` +Default: `.` ## Routes ### `/` diff --git a/main.go b/main.go index 3cb4db8..1b33081 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( var ( configFile = flag.String("config-file", "conf.toml", "Path to configuration file") authFile = flag.String("auth-file", "auth.toml", "Path to authentication file") - dataPath = flag.String("data-path", "./", "Where to save data") + dataPath = flag.String("data-path", ".", "Where to save data") enableDebugMode = flag.Bool("enable-debug-mode", false, "Enables debug mode, will output a list of all registered records on the index page of the HTTP server") )