mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 12:42:27 +08:00
Fixed: remove proxys and rules then update config
This commit is contained in:
parent
20a3c231de
commit
6e2b9edb45
@ -37,6 +37,10 @@ func (t *Tunnel) UpdateConfig() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// clear proxys and rules
|
||||||
|
t.proxys = make(map[string]C.Proxy)
|
||||||
|
t.rules = []C.Rule{}
|
||||||
|
|
||||||
proxys := cfg.Section("Proxy")
|
proxys := cfg.Section("Proxy")
|
||||||
rules := cfg.Section("Rule")
|
rules := cfg.Section("Rule")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user