From c486bb032f3b50df9a6dd7d4dfa22c8dec9c162b Mon Sep 17 00:00:00 2001 From: David Buscher Date: Sun, 26 Sep 2021 14:26:51 +0100 Subject: [PATCH] Accomodate change in nft syntax --- src/yunohost/firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yunohost/firewall.py b/src/yunohost/firewall.py index 3792cf35c..bf33cae50 100644 --- a/src/yunohost/firewall.py +++ b/src/yunohost/firewall.py @@ -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",