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