1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

Fix analyse ports

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2021-12-26 18:10:36 +01:00
parent ef30a85afb
commit 9f0e0dbd37
No known key found for this signature in database
GPG Key ID: 4CDA6F249DD2B485

2
pihole
View File

@ -327,7 +327,7 @@ statusFunc() {
port="$(lsof -Pni UDP -p ${pid} -a | grep -m1 : | awk -F ":" '{print $2}')"
listening="$(lsof -Pni:53)"
if [[ ! -z "$port" ]]; then
if [[ "${1}" != "web" ]]; then
if [[ "${1}" != "web" ]] && [[ "$port" -eq 53 ]]; then
analyze_ports "${listening}"
fi
else