mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
import needed settings
This commit is contained in:
parent
d8ff177501
commit
f6f6e705fc
1 changed files with 4 additions and 3 deletions
|
@ -11,6 +11,10 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
ynh_abort_if_errors
|
||||
|
||||
# import needed settings
|
||||
port_dns_over_http=$(ynh_app_setting_get --app="$app" --key=port_dns_over_http)
|
||||
port_dns_over_quic=$(ynh_app_setting_get --app="$app" --key=port_dns_over_quic)
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETTERS
|
||||
#=================================================
|
||||
|
@ -54,9 +58,6 @@ set__expose_port_53() {
|
|||
|
||||
set__dns_over_https() {
|
||||
|
||||
port_dns_over_http=$(ynh_app_setting_get --app="$app" --key=port_dns_over_http)
|
||||
port_dns_over_quic=$(ynh_app_setting_get --app="$app" --key=port_dns_over_quic)
|
||||
|
||||
if [ "$dns_over_https" == "true" ]; then
|
||||
ynh_print_info --message="Opening DoH and DoQ ports..."
|
||||
# if DNS over HTTPS/QUIC is activated, open the associated ports
|
||||
|
|
Loading…
Add table
Reference in a new issue