Fix the problem that ui can't be synchronized when android vpn is occupied by an external

Override default socksPort,port
This commit is contained in:
chen08209
2024-07-15 13:47:06 +08:00
parent aa4ffbe4fb
commit a4b5f4abdb
4 changed files with 23 additions and 5 deletions

View File

@@ -325,8 +325,8 @@ func overwriteConfig(targetConfig *config.RawConfig, patchConfig config.RawConfi
//targetConfig.GeodataMode = false
targetConfig.IPv6 = patchConfig.IPv6
targetConfig.LogLevel = patchConfig.LogLevel
//targetConfig.Port = 0
//targetConfig.SocksPort = 0
targetConfig.Port = 0
targetConfig.SocksPort = 0
targetConfig.MixedPort = patchConfig.MixedPort
targetConfig.FindProcessMode = patchConfig.FindProcessMode
targetConfig.AllowLan = patchConfig.AllowLan