Fixed: remove proxys and rules then update config

This commit is contained in:
gVisor bot 2018-06-13 13:38:46 +08:00
parent cc515d0269
commit 9474399611

View file

@ -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")