diff options
author | ache <ache@ache.one> | 2021-03-18 03:34:05 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2021-03-18 03:34:05 +0100 |
commit | 895a9449f73e846de8f260e90f88a0238f688035 (patch) | |
tree | 326bf1237e93d8f3911cb80cd7e526ebd441af73 /config/config.go | |
parent | Config + 1.16 + MultiSelection (diff) |
Port configuration
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 = "." |