1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/adguardhome_ynh.git synced 2024-09-03 18:06:23 +02:00

use an OR in place of an AND to be sure to open ports if needed

This commit is contained in:
OniriCorpe 2024-05-13 02:14:38 +02:00
parent d19c5d9fb2
commit 7f37e22c06

View file

@ -95,7 +95,7 @@ fi
if [ "${dns_over_https:-}" = true ]; then if [ "${dns_over_https:-}" = true ]; then
# if DoH and DoQ are closed # if DoH and DoQ are closed
if ! yunohost firewall list | grep -q " $port_dns_over_tls$" && ! yunohost firewall list | grep -q " $port_dns_over_quic$"; then if ! yunohost firewall list | grep -q " $port_dns_over_tls$" || ! yunohost firewall list | grep -q " $port_dns_over_quic$"; then
ynh_print_info --message="Opening DoH and DoQ ports..." ynh_print_info --message="Opening DoH and DoQ ports..."
ynh_exec_warn_less yunohost firewall allow Both "$port_dns_over_tls" --no-reload ynh_exec_warn_less yunohost firewall allow Both "$port_dns_over_tls" --no-reload
ynh_exec_warn_less yunohost firewall allow UDP "$port_dns_over_quic" ynh_exec_warn_less yunohost firewall allow UDP "$port_dns_over_quic"