From 5d37b597682a8f830acd1bc82c026182bbe7896b Mon Sep 17 00:00:00 2001 From: mospaeda Date: Mon, 23 Mar 2015 19:43:13 +0100 Subject: [PATCH] Blacklist and automatic detection of IP address detection is valid for all languages --- gravity-adv.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gravity-adv.sh b/gravity-adv.sh index e89e1e4..41fbf7a 100755 --- a/gravity-adv.sh +++ b/gravity-adv.sh @@ -2,13 +2,8 @@ # The Pi-hole now blocks over 120,000 ad domains # Address to send ads to (the RPi) piholeIP="127.0.0.1" -# Optionally, uncomment to automatically detect the address. Thanks Gregg -#piholeIP=$(ifconfig eth0 | awk '/inet addr/{print substr($2,6)}') -# Below code allows to automatically detect the address with all locale -langsys=$LANG -LANG=en_US.utf8 -piholeIP=$(ifconfig eth0 | awk '/inet addr/{print substr($2,6)}') -LANG=$langsys +# Optionally, uncomment to automatically detect the local IP address. +# piholeIP=$(hostname -I) # Config file to hold URL rules eventHorizion="/etc/dnsmasq.d/adList.conf"