From 6e2b9edb45c23d544df08de05d99087260a54db9 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> 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")