diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 3 | ||||
-rw-r--r-- | config/config.json | 4 |
2 files changed, 4 insertions, 3 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 = "." diff --git a/config/config.json b/config/config.json index 74dac99..3a88cb9 100644 --- a/config/config.json +++ b/config/config.json @@ -1,6 +1,6 @@ { "host":["localhost"], - "port": 8080, "allow-hidden": false, - "auth": true + "auth": true, + "cache": true } |