mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
fix fake ip filter not working
This commit is contained in:
@@ -59,15 +59,15 @@ func init() {
|
||||
|
||||
// LoadDefault - load default configure
|
||||
func LoadDefault() {
|
||||
DnsPatch = nil
|
||||
NameServersAppend = make([]string, 0)
|
||||
|
||||
defaultC, err := parseConfig([]byte(defaultConfig), constant.Path.HomeDir())
|
||||
if err != nil {
|
||||
log.Warnln("Load Default Failure " + err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
DnsPatch = nil
|
||||
NameServersAppend = make([]string, 0)
|
||||
|
||||
executor.ApplyConfig(defaultC, true)
|
||||
|
||||
tun.InitialResolver()
|
||||
|
||||
@@ -64,6 +64,7 @@ func patchConfig(config *config.Config) {
|
||||
if config.DNS.FakeIPRange != nil {
|
||||
if c := cachedPool; c != nil {
|
||||
if config.DNS.FakeIPRange.Gateway().String() == c.Gateway().String() {
|
||||
c.OverrideHostFrom(config.DNS.FakeIPRange)
|
||||
config.DNS.FakeIPRange = c
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user