1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

source setupVars and check for the correct variable

This commit is contained in:
Jacob Salmela 2016-11-01 19:01:48 -05:00
parent 884363bd05
commit f8e9726922

View File

@ -17,11 +17,12 @@ gravity="/etc/pihole/gravity.list"
today=$(date "+%b %e")
. /etc/pihole/setupVars.conf
CalcBlockedDomains() {
CheckIPv6
if [ -e "${gravity}" ]; then
#Are we IPV6 or IPV4?
if [[ -n ${piholeIPv6} ]]; then
if [[ -n "${IPv6_address}" ]]; then
#We are IPV6
blockedDomainsTotal=$(wc -l /etc/pihole/gravity.list | awk '{print $1/2}')
else