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:
parent
d19c5d9fb2
commit
7f37e22c06
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ fi
|
|||
|
||||
if [ "${dns_over_https:-}" = true ]; then
|
||||
# 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_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"
|
||||
|
|
Loading…
Add table
Reference in a new issue