From 94743996110540ac0d63d85336d74b94fb7c9924 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Wed, 13 Jun 2018 13:38:46 +0800 Subject: [PATCH] Fixed: remove proxys and rules then update config --- tunnel/tunnel.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index c97a0f7b..278b2559 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -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")