[skip ci] [Fix] ban auto set iptables when tun is enabled
This commit is contained in:
parent
9b4ddbed2c
commit
6c64164bee
1 changed files with 5 additions and 0 deletions
|
@ -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 (
|
var (
|
||||||
inboundInterface = "lo"
|
inboundInterface = "lo"
|
||||||
bypass = iptables.Bypass
|
bypass = iptables.Bypass
|
||||||
|
|
Loading…
Reference in a new issue