From 69901b0beadcdb21e3350622335cdb42d7351676 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 17 Apr 2021 02:15:46 +0200 Subject: Trully Allow Hidden File / Directory --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/config.go') 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 = "." } -- cgit v1.2.3