summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorache <ache@ache.one>2021-05-16 05:35:14 +0200
committerache <ache@ache.one>2021-05-16 05:35:14 +0200
commitdffbda7fe483de7ec6843f1ffcf2f51faea444d5 (patch)
tree38995ee5d375205858627a1c2f213187dab39c7c /config
parentForce host with cli arg (diff)
Force IP versionHEADmaster
Diffstat (limited to 'config')
-rw-r--r--config/config.go3
-rw-r--r--config/config.json3
2 files changed, 5 insertions, 1 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..cb0e719 100644
--- a/config/config.json
+++ b/config/config.json
@@ -3,5 +3,6 @@
"allow-hidden": true,
"hide-hidden": true,
"auth": true,
- "cache": true
+ "cache": true,
+ "ipv6": true
}