mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Swap the command order to allow for simple nftables support, via update-alternatives
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user