From d0c835578e6657c14885dfe14294037db7fe2d7e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 12 Aug 2021 10:36:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20invalid=20IP=20address=20f?= =?UTF-8?q?ormat=20in=20bind=5Fhosts=20(#236)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adguard/rootfs/etc/cont-init.d/adguard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adguard/rootfs/etc/cont-init.d/adguard.sh b/adguard/rootfs/etc/cont-init.d/adguard.sh index 998eeae..d796e09 100644 --- a/adguard/rootfs/etc/cont-init.d/adguard.sh +++ b/adguard/rootfs/etc/cont-init.d/adguard.sh @@ -82,7 +82,7 @@ for host in "${hosts[@]}"; do fi fi - host="${host}" yq --inplace e \ + host="${host%/*}" yq --inplace e \ '.dns.bind_hosts += [env(host)]' "${CONFIG}" \ || bashio::exit.nok 'Failed updating AdGuardHome host' done