Remove getFTLAPIPort() function and fix pihole status

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2023-02-24 21:31:35 +01:00 committed by Adam Warner
parent 44bfb8ebf0
commit b5800ef718
No known key found for this signature in database
4 changed files with 4 additions and 74 deletions

View file

@ -16,7 +16,7 @@ pihole-FTL() {
local ftl_port LINE
# shellcheck disable=SC1091
. /opt/pihole/utils.sh
ftl_port=$(getFTLAPIPort)
ftl_port=$(getFTLConfigValue dns.port)
if [[ -n "$ftl_port" ]]; then
# Open connection to FTL
exec 3<>"/dev/tcp/127.0.0.1/$ftl_port"