summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/config.go3
-rw-r--r--config/config.json6
2 files changed, 7 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index f20ce9e..5abdaf6 100644
--- a/config/config.go
+++ b/config/config.go
@@ -14,6 +14,8 @@ type config struct {
Auth bool `json:"auth"`
RootPath string `json:"root-path"`
Cache bool `json:"cache"`
+ OnlyIPv4 bool `json:"ipv4"`
+ OnlyIPv6 bool `json:"ipv6"`
}
var Config config
@@ -44,4 +46,5 @@ func SetDefaultValue() {
Config.HideHidden = true
Config.Auth = false
Config.RootPath = "."
+ Config.OnlyIPv6 = true
}
diff --git a/config/config.json b/config/config.json
index 09243ed..0cc3b79 100644
--- a/config/config.json
+++ b/config/config.json
@@ -1,7 +1,9 @@
{
- "hosts":["localhost"],
+ "hosts":["0.0.0.0"],
+ "port": 8081,
"allow-hidden": true,
"hide-hidden": true,
"auth": true,
- "cache": true
+ "cache": true,
+ "ipv6": true
}