summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go2
-rw-r--r--config/config.json3
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
}