From 051c81518ced067980af400740409c064819bd1e Mon Sep 17 00:00:00 2001 From: Clash-Mini Date: Wed, 5 Jan 2022 01:56:35 +0800 Subject: [PATCH] make tun config compatible with premium --- config/config.go | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/config/config.go b/config/config.go index f077dcf3..54db63d6 100644 --- a/config/config.go +++ b/config/config.go @@ -98,11 +98,10 @@ type Profile struct { // Tun config type Tun struct { - Enable bool `yaml:"enable" json:"enable"` - Stack string `yaml:"stack" json:"stack"` - DnsHijack []string `yaml:"dns-hijack" json:"dns-hijack"` - AutoRoute bool `yaml:"auto-route" json:"auto-route"` - AutoDetectInterface bool `yaml:"auto-detect-interface" json:"auto-detect-interface"` + Enable bool `yaml:"enable" json:"enable"` + Stack string `yaml:"stack" json:"stack"` + DnsHijack []string `yaml:"dns-hijack" json:"dns-hijack"` + AutoRoute bool `yaml:"auto-route" json:"auto-route"` } // Script config @@ -207,11 +206,10 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) { Proxy: []map[string]interface{}{}, ProxyGroup: []map[string]interface{}{}, Tun: Tun{ - Enable: false, - Stack: "gvisor", - DnsHijack: []string{"192.18.0.2:53"}, - AutoRoute: true, - AutoDetectInterface: true, + Enable: false, + Stack: "gvisor", + DnsHijack: []string{"192.18.0.2:53"}, + AutoRoute: true, }, DNS: RawDNS{ Enable: false,