Output cleaning, IP stack check headers.

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
pull/1335/head
Dan Schaper 7 years ago
parent 77378da70a
commit b1f769b671
No known key found for this signature in database
GPG Key ID: 572E999E385B7BFC

@ -226,6 +226,7 @@ ipv6_check() {
ip_check() {
local protocol=${1}
local gravity=${2}
header_write "Checking IPv${protocol} Stack"
local ip_addr_list="$(ip -${protocol} addr show dev ${PIHOLE_INTERFACE} | awk -F ' ' '{ for(i=1;i<=NF;i++) if ($i ~ '/^inet/') print $(i+1) }')"
if [[ -n ${ip_addr_list} ]]; then

Loading…
Cancel
Save