mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-21 23:00:18 +00:00
Remove getFTLAPIPort() function and fix pihole status
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
44bfb8ebf0
commit
b5800ef718
4 changed files with 4 additions and 74 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue