From dffbda7fe483de7ec6843f1ffcf2f51faea444d5 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 16 May 2021 05:35:14 +0200 Subject: Force IP version --- config/config.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/config.go') 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 } -- cgit v1.2.3