Fix the problem of invalid auto-selection

This commit is contained in:
chen08209
2024-05-05 16:12:00 +08:00
parent 74c3d0ae25
commit 5c71992174
4 changed files with 3 additions and 3 deletions

View File

@@ -121,6 +121,7 @@ func overwriteConfig(targetConfig *config.RawConfig, patchConfig config.RawConfi
targetConfig.Tun.Device = patchConfig.Tun.Device
targetConfig.Tun.DNSHijack = patchConfig.Tun.DNSHijack
targetConfig.Tun.Stack = patchConfig.Tun.Stack
targetConfig.Profile.StoreSelected = false
if targetConfig.DNS.Enable == false {
targetConfig.DNS = patchConfig.DNS
} else {