Skip to content

Commit

Permalink
update comparison to avoid higher minor versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed May 23, 2024
1 parent 1ec415d commit 29a429b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/firewall/create_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func check() FWType {
if err == nil && isIptablesClientAvailable(ip) {
major, minor, _ := ip.GetIptablesVersion()
// use iptables when its version is lower than 1.8.0 which doesn't work well with our nftables manager
if major < 2 && minor < 8 {
if major < 1 || (major == 1 && minor < 8) {
return IPTABLES
}

Expand Down

0 comments on commit 29a429b

Please sign in to comment.