mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 22:00:17 +00:00
adjust some spacing
This commit is contained in:
parent
6684af9938
commit
c995c81fff
1 changed files with 10 additions and 10 deletions
|
@ -356,15 +356,15 @@ check_x_headers() {
|
||||||
local block_page_working="X-Pi-hole: A black hole for Internet advertisements."
|
local block_page_working="X-Pi-hole: A black hole for Internet advertisements."
|
||||||
local dashboard_working="X-Pi-hole: The Pi-hole Web interface is working!"
|
local dashboard_working="X-Pi-hole: The Pi-hole Web interface is working!"
|
||||||
if [[ $block_page == $block_page_working ]]; then
|
if [[ $block_page == $block_page_working ]]; then
|
||||||
echo -e " $TICK ${block_page}"
|
echo -e " $TICK ${block_page}"
|
||||||
else
|
else
|
||||||
echo -e " $CROSS X-Header does not match or could not be retrieved"
|
echo -e " $CROSS X-Header does not match or could not be retrieved"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $dashboard == $dashboard_working ]]; then
|
if [[ $dashboard == $dashboard_working ]]; then
|
||||||
echo -e " $TICK ${dashboard}"
|
echo -e " $TICK ${dashboard}"
|
||||||
else
|
else
|
||||||
echo -e " $CROSS X-Header does not match or could not be retrieved"
|
echo -e " $CROSS X-Header does not match or could not be retrieved"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -395,21 +395,21 @@ dig_at() {
|
||||||
local remote_url="doubleclick.com"
|
local remote_url="doubleclick.com"
|
||||||
|
|
||||||
if local_dig=$(dig -"${protocol}" "${random_url}" @${local_address} +short "${record_type}"); then
|
if local_dig=$(dig -"${protocol}" "${random_url}" @${local_address} +short "${record_type}"); then
|
||||||
echo -e " ${TICK} ${random_url} is ${local_dig} via localhost (${local_address})"
|
echo -e " ${TICK} ${random_url} is ${local_dig} via localhost (${local_address})"
|
||||||
else
|
else
|
||||||
echo -e " ${CROSS} Failed to resolve ${random_url} via localhot (${local_address})"
|
echo -e " ${CROSS} Failed to resolve ${random_url} via localhot (${local_address})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if pihole_dig=$(dig -"${protocol}" "${random_url}" @${pihole_address} +short "${record_type}"); then
|
if pihole_dig=$(dig -"${protocol}" "${random_url}" @${pihole_address} +short "${record_type}"); then
|
||||||
echo -e " ${TICK} ${random_url} is ${pihole_dig} via Pi-hole (${pihole_address})"
|
echo -e " ${TICK} ${random_url} is ${pihole_dig} via Pi-hole (${pihole_address})"
|
||||||
else
|
else
|
||||||
echo -e " ${CROSS} Failed to resolve ${random_url} via Pi-hole (${pihole_address})"
|
echo -e " ${CROSS} Failed to resolve ${random_url} via Pi-hole (${pihole_address})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if remote_dig=$(dig -"${protocol}" "${remote_url}" @${remote_address} +short "${record_type}" | head -n1); then
|
if remote_dig=$(dig -"${protocol}" "${remote_url}" @${remote_address} +short "${record_type}" | head -n1); then
|
||||||
echo -e " ${TICK} ${random_url} is ${remote_dig} via a remote, public DNS server (${remote_address})"
|
echo -e " ${TICK} ${random_url} is ${remote_dig} via a remote, public DNS server (${remote_address})"
|
||||||
else
|
else
|
||||||
echo -e " ${CROSS} Failed to resolve ${remote_url} via a remote, public DNS server (${remote_address})"
|
echo -e " ${CROSS} Failed to resolve ${remote_url} via a remote, public DNS server (${remote_address})"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue