mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-20 02:18:51 +00:00
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:
@@ -53,6 +53,7 @@ setup_FTL_upstream_DNS
|
|||||||
apply_FTL_Configs_From_Env
|
apply_FTL_Configs_From_Env
|
||||||
setup_FTL_User
|
setup_FTL_User
|
||||||
setup_FTL_Interface
|
setup_FTL_Interface
|
||||||
|
setup_FTL_ListeningBehaviour
|
||||||
setup_FTL_CacheSize
|
setup_FTL_CacheSize
|
||||||
setup_FTL_query_logging
|
setup_FTL_query_logging
|
||||||
setup_FTL_server || true
|
setup_FTL_server || true
|
||||||
|
|||||||
@@ -171,6 +171,12 @@ setup_FTL_Interface(){
|
|||||||
change_setting "PIHOLE_INTERFACE" "${interface}"
|
change_setting "PIHOLE_INTERFACE" "${interface}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setup_FTL_ListeningBehaviour(){
|
||||||
|
if [ -n "$DNSMASQ_LISTENING" ]; then
|
||||||
|
change_setting "DNSMASQ_LISTENING" "${DNSMASQ_LISTENING}"
|
||||||
|
fi;
|
||||||
|
}
|
||||||
|
|
||||||
setup_FTL_CacheSize() {
|
setup_FTL_CacheSize() {
|
||||||
local warning=" [i] WARNING: CUSTOM_CACHE_SIZE not used"
|
local warning=" [i] WARNING: CUSTOM_CACHE_SIZE not used"
|
||||||
local dnsmasq_pihole_01_location="/etc/dnsmasq.d/01-pihole.conf"
|
local dnsmasq_pihole_01_location="/etc/dnsmasq.d/01-pihole.conf"
|
||||||
|
|||||||
Reference in New Issue
Block a user