From 6c64164bee64070e4a3098fcc96664ad5e42e239 Mon Sep 17 00:00:00 2001 From: Adlyq <2833154405@qq.com> Date: Wed, 23 Mar 2022 20:37:46 +0800 Subject: [PATCH] [skip ci] [Fix] ban auto set iptables when tun is enabled --- hub/executor/executor.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index ee7ad088..9a5c7c2b 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -315,6 +315,11 @@ func updateIPTables(cfg *config.Config) { } }() + if cfg.Tun.Enable { + err = fmt.Errorf("when tun is enabled, iptables cannot be set automatically") + return + } + var ( inboundInterface = "lo" bypass = iptables.Bypass