mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Change netstat to lsof.
This commit is contained in:
parent
edd7f28104
commit
36e10595cc
1 changed files with 3 additions and 2 deletions
|
@ -209,9 +209,10 @@ function portCheck {
|
||||||
echo "######## Open Port Information #########" >> ${DEBUG_LOG}
|
echo "######## Open Port Information #########" >> ${DEBUG_LOG}
|
||||||
echo "############################################################" >> ${DEBUG_LOG}
|
echo "############################################################" >> ${DEBUG_LOG}
|
||||||
|
|
||||||
echo "::: Writing local server ports to logfile"
|
echo "::: Detecting local server port 80 and 53 processes."
|
||||||
|
|
||||||
${SUDO} netstat -tulpn >> ${DEBUG_LOG}
|
${SUDO} lsof -i :80 >> ${DEBUG_LOG}
|
||||||
|
${SUDO} lsof -i :53 >> ${DEBUG_LOG}
|
||||||
echo >> ${DEBUG_LOG}
|
echo >> ${DEBUG_LOG}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue