Set FTL/DNSMASQ listening behaviour per variable if it is passed. Fixes #1188

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2022-08-29 17:12:58 +01:00
parent a4c931f115
commit 0bbdd15073
No known key found for this signature in database
GPG Key ID: 872950F3ECF2B173
2 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,7 @@ setup_FTL_upstream_DNS
apply_FTL_Configs_From_Env
setup_FTL_User
setup_FTL_Interface
setup_FTL_ListeningBehaviour
setup_FTL_CacheSize
setup_FTL_query_logging
setup_FTL_server || true

View File

@ -171,6 +171,12 @@ setup_FTL_Interface(){
change_setting "PIHOLE_INTERFACE" "${interface}"
}
setup_FTL_ListeningBehaviour(){
if [ -n "$DNSMASQ_LISTENING" ]; then
change_setting "DNSMASQ_LISTENING" "${DNSMASQ_LISTENING}"
fi;
}
setup_FTL_CacheSize() {
local warning=" [i] WARNING: CUSTOM_CACHE_SIZE not used"
local dnsmasq_pihole_01_location="/etc/dnsmasq.d/01-pihole.conf"