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 ++ config/config.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'config') 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 } -- cgit v1.2.3