mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Close WireGuard port in UDP during removal
Matching its opening in UDP in install script
This commit is contained in:
parent
10bd1ec400
commit
3b974c91cc
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ ynh_remove_logrotate
|
||||||
if yunohost firewall list | grep -q "\- $port_wg$"
|
if yunohost firewall list | grep -q "\- $port_wg$"
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Closing port $port_wg..." --weight=1
|
ynh_script_progression --message="Closing port $port_wg..." --weight=1
|
||||||
ynh_exec_warn_less yunohost firewall disallow TCP $port_wg
|
ynh_exec_warn_less yunohost firewall disallow UDP $port_wg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if yunohost firewall list | grep -q "\- $port$"
|
if yunohost firewall list | grep -q "\- $port$"
|
||||||
|
|
Loading…
Add table
Reference in a new issue