mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-24 16:20:13 +00:00
Remove last traces
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
3d01e4d0cf
commit
25ba68104b
3 changed files with 4 additions and 7 deletions
|
@ -14,7 +14,9 @@ LC_NUMERIC=C
|
|||
# Retrieve stats from FTL engine
|
||||
pihole-FTL() {
|
||||
local ftl_port LINE
|
||||
ftl_port=$(cat /run/pihole-FTL.port 2> /dev/null)
|
||||
# shellcheck disable=SC1091
|
||||
. /opt/pihole/utils.sh
|
||||
ftl_port=$(getFTLAPIPort)
|
||||
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