From b6ee47a541c364a1487233a06be3cc20e2233048 Mon Sep 17 00:00:00 2001 From: Fndroid Date: Thu, 7 Jan 2021 13:59:39 +0800 Subject: [PATCH] Fix: get general should return correct result (#1172) --- config/config.go | 2 +- hub/executor/executor.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index f89fe433..8408fb52 100644 --- a/config/config.go +++ b/config/config.go @@ -30,7 +30,7 @@ type General struct { Mode T.TunnelMode `json:"mode"` LogLevel log.LogLevel `json:"log-level"` IPv6 bool `json:"ipv6"` - Interface string `json:"interface-name"` + Interface string `json:"-"` } // Inbound diff --git a/hub/executor/executor.go b/hub/executor/executor.go index d5b96a27..4bf40f17 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -94,6 +94,7 @@ func GetGeneral() *config.General { }, Mode: tunnel.Mode(), LogLevel: log.Level(), + IPv6: !resolver.DisableIPv6, } return general