diff options
author | ache <ache@ache.one> | 2021-04-17 02:15:46 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2021-04-17 02:15:46 +0200 |
commit | 69901b0beadcdb21e3350622335cdb42d7351676 (patch) | |
tree | 386a1c1d2424dab6e7963001bcc022400811f42e /config | |
parent | Fix input update name (diff) |
Trully Allow Hidden File / Directory
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 2 | ||||
-rw-r--r-- | config/config.json | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/config/config.go b/config/config.go index f10522d..f20ce9e 100644 --- a/config/config.go +++ b/config/config.go @@ -10,6 +10,7 @@ type config struct { Hostnames []string `json:"hosts"` Port int `json:"port"` AllowHidden bool `json:"allow-hidden"` + HideHidden bool `json:"hide-hidden"` Auth bool `json:"auth"` RootPath string `json:"root-path"` Cache bool `json:"cache"` @@ -40,6 +41,7 @@ func SetDefaultValue() { Config.Hostnames = []string{"localhost"} Config.Port = 0 Config.AllowHidden = false + Config.HideHidden = true Config.Auth = false Config.RootPath = "." } diff --git a/config/config.json b/config/config.json index 3a88cb9..102bda3 100644 --- a/config/config.json +++ b/config/config.json @@ -1,6 +1,7 @@ { "host":["localhost"], - "allow-hidden": false, + "allow-hidden": true, + "hide-hidden": true, "auth": true, "cache": true } |