diff options
Diffstat (limited to 'config/config.go')
-rw-r--r-- | config/config.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 = "." |