Fix: repo servers.json path

This commit is contained in:
Quentin McGaw (desktop)
2021-09-06 13:41:45 +00:00
parent 6b6caa435f
commit 4a0738cd49
2 changed files with 2 additions and 2 deletions

View File

@@ -16,6 +16,6 @@ type CLI struct {
func New() *CLI {
return &CLI{
repoServersPath: "./internal/constants/servers.json",
repoServersPath: "./internal/storage/servers.json",
}
}

View File

@@ -35,7 +35,7 @@ func (c *CLI) Update(ctx context.Context, args []string, logger logging.Logger)
flagSet := flag.NewFlagSet("update", flag.ExitOnError)
flagSet.BoolVar(&endUserMode, "enduser", false, "Write results to /gluetun/servers.json (for end users)")
flagSet.BoolVar(&maintainerMode, "maintainer", false,
"Write results to ./internal/constants/servers.json to modify the program (for maintainers)")
"Write results to ./internal/storage/servers.json to modify the program (for maintainers)")
flagSet.StringVar(&options.DNSAddress, "dns", "8.8.8.8", "DNS resolver address to use")
flagSet.BoolVar(&updateAll, "all", false, "Update servers for all VPN providers")
flagSet.BoolVar(&options.Cyberghost, "cyberghost", false, "Update Cyberghost servers")