1
0
Fork 0
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:
tituspijean 2021-06-03 21:41:08 +02:00
parent 10bd1ec400
commit 3b974c91cc

View file

@ -98,7 +98,7 @@ ynh_remove_logrotate
if yunohost firewall list | grep -q "\- $port_wg$"
then
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
if yunohost firewall list | grep -q "\- $port$"