mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Output cleaning, IP stack check headers.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
77378da70a
commit
b1f769b671
@ -226,6 +226,7 @@ ipv6_check() {
|
|||||||
ip_check() {
|
ip_check() {
|
||||||
local protocol=${1}
|
local protocol=${1}
|
||||||
local gravity=${2}
|
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) }')"
|
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
|
if [[ -n ${ip_addr_list} ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user