Make verbose output the default.

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/3524/head
DL6ER 4 years ago
parent 6009e86947
commit 94cd7f59d4
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

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

Loading…
Cancel
Save