Swap the command order to allow for simple nftables support, via update-alternatives

This commit is contained in:
TheBeardedQuack
2023-12-20 13:16:08 +00:00
parent a2bb0173b6
commit 0df0bb4837

View File

@@ -394,8 +394,8 @@ return undef;
sub iptables_restore_command
{
return &has_command("ip${ipvx}tables-legacy-restore") ||
&has_command("ip${ipvx}tables-restore");
return &has_command("ip${ipvx}tables-restore") ||
&has_command("ip${ipvx}tables-legacy-restore");
}
# iptables_restore()
@@ -409,8 +409,8 @@ return $? ? "<pre>$out</pre>" : undef;
sub iptables_save_command
{
return &has_command("ip${ipvx}tables-legacy-save") ||
&has_command("ip${ipvx}tables-save");
return &has_command("ip${ipvx}tables-save") ||
&has_command("ip${ipvx}tables-legacy-save");
}
# iptables_save()