diff --git a/iptables/iptables_test.go b/iptables/iptables_test.go index 18ffa43..f341e2c 100644 --- a/iptables/iptables_test.go +++ b/iptables/iptables_test.go @@ -422,14 +422,14 @@ func runRulesTests(t *testing.T, ipt *IPTables) { opt := "--" prot := "0" if ipt.proto == ProtocolIPv6 && - ipt.v1 == 1 && ipt.v2 <= 8 && ipt.v3 < 9 { + ipt.v1 == 1 && (ipt.v2 < 8 || (ipt.v2 == 8 && ipt.v3 < 9)) { // this is fixed in iptables 1.8.9 via iptables/6e41c2d874 opt = " " // this is fixed in iptables 1.8.9 via iptables/da8ecc62dd prot = "all" } if ipt.proto == ProtocolIPv4 && - ipt.v1 == 1 && ipt.v2 <= 8 && ipt.v3 < 9 { + ipt.v1 == 1 && (ipt.v2 < 8 || (ipt.v2 == 8 && ipt.v3 < 9)) { // this is fixed in iptables 1.8.9 via iptables/da8ecc62dd prot = "all" }