mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-18 08:20:53 +00:00
Fixed: remove proxys and rules then update config
This commit is contained in:
parent
cc515d0269
commit
9474399611
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ func (t *Tunnel) UpdateConfig() (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
// clear proxys and rules
|
||||
t.proxys = make(map[string]C.Proxy)
|
||||
t.rules = []C.Rule{}
|
||||
|
||||
proxys := cfg.Section("Proxy")
|
||||
rules := cfg.Section("Rule")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue