mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Accomodate change in nft syntax
This commit is contained in:
parent
0fce089c54
commit
c486bb032f
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue