mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 07:13:17 +08:00
[skip ci] [Fix] ban auto set iptables when tun is enabled
This commit is contained in:
parent
9b4ddbed2c
commit
6c64164bee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user