Skip to content

Commit

Permalink
auto-redirect: Fix nftables available check
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jul 3, 2024
1 parent 60a8276 commit 3ceb225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redirect_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ func NewAutoRedirect(options AutoRedirectOptions) (AutoRedirect, error) {
if r.useNFTables {
err = r.initializeNFTables()
if err != nil && err != os.ErrInvalid {
r.logger.Debug("device has no nftables support: ", err)
r.useNFTables = false
r.logger.Debug("missing nftables support: ", err)
}
}
if len(r.tunOptions.Inet4Address) > 0 {
Expand Down

0 comments on commit 3ceb225

Please sign in to comment.