Accomodate change in nft syntax

This commit is contained in:
David Buscher 2021-09-26 14:26:51 +01:00
parent 0fce089c54
commit c486bb032f

View file

@ -228,7 +228,7 @@ def firewall_reload(skip_upnp=False):
# IPv4
try:
process.check_output("nft list ruleset -n -a")
process.check_output("nft -n -a list ruleset")
except process.CalledProcessError as e:
logger.debug(
"nftables/nft seems to be not available, it outputs:\n%s",
@ -267,7 +267,7 @@ def firewall_reload(skip_upnp=False):
# IPv6
try:
process.check_output("nft list ruleset -n -a")
process.check_output("nft -n -a list ruleset")
except process.CalledProcessError as e:
logger.debug(
"ip6tables/nft seems to be not available, it outputs:\n%s",