|
|
|
@ -253,11 +253,7 @@ Options:
|
|
|
|
|
analyze_ports() {
|
|
|
|
|
# FTL is listening at least on at least one port when this
|
|
|
|
|
# function is getting called
|
|
|
|
|
if [[ $(grep -c "IPv4" <<< "${1}") -gt 1 ]] && \
|
|
|
|
|
[[ $(grep -c "IPv6" <<< "${1}") -gt 1 ]]; then
|
|
|
|
|
echo -e " ${TICK} DNS service is listening"
|
|
|
|
|
else
|
|
|
|
|
echo -e " ${CROSS} DNS service is partially listening"
|
|
|
|
|
# Check individual address family/protocol combinations
|
|
|
|
|
# For a healthy Pi-hole, they should all be up (nothing printed)
|
|
|
|
|
if grep -q "IPv4.*UDP" <<< "${1}"; then
|
|
|
|
@ -281,7 +277,6 @@ analyze_ports() {
|
|
|
|
|
echo -e " ${CROSS} TCP (IPv6)"
|
|
|
|
|
fi
|
|
|
|
|
echo ""
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
statusFunc() {
|
|
|
|
|