mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Top half user output updated.
This commit is contained in:
parent
0debbffa70
commit
e3c7a1f31f
1 changed files with 3 additions and 3 deletions
|
@ -223,7 +223,7 @@ lsof_parse() {
|
|||
else
|
||||
match="incorrectly."
|
||||
fi
|
||||
log_echo "by ${user} for ${process} ${match}"
|
||||
log_echo -l "by ${user} for ${process} ${match}"
|
||||
}
|
||||
|
||||
|
||||
|
@ -237,12 +237,12 @@ daemon_check() {
|
|||
|
||||
if [[ ${IPV6_ENABLED} ]]; then
|
||||
lsof_value=$(lsof -i 6:${2} -FcL | tr '\n' ' ') \
|
||||
&& (log_echo "Port ${2} is in use on IPv6" && lsof_parse "${lsof_value}" "${1}") \
|
||||
&& (log_echo -n "IPv6 Port ${2} is in use " && lsof_parse "${lsof_value}" "${1}") \
|
||||
|| (log_echo "Port ${2} is not in use on IPv6.")
|
||||
fi
|
||||
|
||||
lsof_value=$(lsof -i 4:${2} -FcL | tr '\n' ' ') \
|
||||
&& (log_echo "Port ${2} is in use on IPv4" && lsof_parse "${lsof_value}" "${1}") \
|
||||
&& (log_echo -n "IPv4 Port ${2} is in use " && lsof_parse "${lsof_value}" "${1}") \
|
||||
|| (log_echo "Port ${2} is not in use on IPv4.")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue