Fix the problem that vpn cannot be started in some cases

Fix the problem that geodata url does not take effect
This commit is contained in:
chen08209
2024-07-13 16:36:08 +08:00
parent 2dd45062f1
commit 1765576d09
7 changed files with 50 additions and 51 deletions

View File

@@ -337,6 +337,8 @@ func overwriteConfig(targetConfig *config.RawConfig, patchConfig config.RawConfi
targetConfig.Tun.Stack = patchConfig.Tun.Stack
targetConfig.GeodataLoader = patchConfig.GeodataLoader
targetConfig.Profile.StoreSelected = false
targetConfig.GeoXUrl = patchConfig.GeoXUrl
targetConfig.GlobalUA = patchConfig.GlobalUA
if targetConfig.DNS.Enable == false {
targetConfig.DNS = patchConfig.DNS
}