fix using / in path

This commit is contained in:
2022-03-20 02:18:46 +01:00
parent 80c2a5717b
commit 0e5a3d7361
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ Default: `auth.toml`
### --data-path ### --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. 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` Type: `string`
Default: `./` Default: `.`
## Routes ## Routes
### `/` ### `/`

View File

@@ -17,7 +17,7 @@ import (
var ( var (
configFile = flag.String("config-file", "conf.toml", "Path to configuration file") configFile = flag.String("config-file", "conf.toml", "Path to configuration file")
authFile = flag.String("auth-file", "auth.toml", "Path to authentication 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") 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")
) )