From 895a9449f73e846de8f260e90f88a0238f688035 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 18 Mar 2021 03:34:05 +0100 Subject: Port configuration --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index ddf3f0a..f10522d 100644 --- a/config/config.go +++ b/config/config.go @@ -12,6 +12,7 @@ type config struct { AllowHidden bool `json:"allow-hidden"` Auth bool `json:"auth"` RootPath string `json:"root-path"` + Cache bool `json:"cache"` } var Config config @@ -37,7 +38,7 @@ func ReadConfig(path string) error { func SetDefaultValue() { Config.Hostnames = []string{"localhost"} - Config.Port = 8080 + Config.Port = 0 Config.AllowHidden = false Config.Auth = false Config.RootPath = "." -- cgit v1.2.3