mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 22:44:44 +00:00
Fix analyse ports
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
ef30a85afb
commit
9f0e0dbd37
1 changed files with 1 additions and 1 deletions
2
pihole
2
pihole
|
@ -327,7 +327,7 @@ statusFunc() {
|
||||||
port="$(lsof -Pni UDP -p ${pid} -a | grep -m1 : | awk -F ":" '{print $2}')"
|
port="$(lsof -Pni UDP -p ${pid} -a | grep -m1 : | awk -F ":" '{print $2}')"
|
||||||
listening="$(lsof -Pni:53)"
|
listening="$(lsof -Pni:53)"
|
||||||
if [[ ! -z "$port" ]]; then
|
if [[ ! -z "$port" ]]; then
|
||||||
if [[ "${1}" != "web" ]]; then
|
if [[ "${1}" != "web" ]] && [[ "$port" -eq 53 ]]; then
|
||||||
analyze_ports "${listening}"
|
analyze_ports "${listening}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue