redirect: Remove iptables rules except basic output redirect for Android

This commit is contained in:
世界 2025-04-11 10:39:23 +08:00
parent c410f7050c
commit 31e29f93cc
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 2 additions and 205 deletions

View file

@ -83,9 +83,8 @@ func (r *autoRedirect) Start() error {
} else {
if r.useNFTables {
err = r.initializeNFTables()
if err != nil && err != os.ErrInvalid {
r.useNFTables = false
r.logger.Debug("missing nftables support: ", err)
if err != nil {
return E.Cause(err, "missing nftables support")
}
}
if len(r.tunOptions.Inet4Address) > 0 {