mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Blacklist and automatic detection of IP address
detection is valid for all languages
This commit is contained in:
parent
89556f2480
commit
5d37b59768
1 changed files with 2 additions and 7 deletions
|
@ -2,13 +2,8 @@
|
||||||
# The Pi-hole now blocks over 120,000 ad domains
|
# The Pi-hole now blocks over 120,000 ad domains
|
||||||
# Address to send ads to (the RPi)
|
# Address to send ads to (the RPi)
|
||||||
piholeIP="127.0.0.1"
|
piholeIP="127.0.0.1"
|
||||||
# Optionally, uncomment to automatically detect the address. Thanks Gregg
|
# Optionally, uncomment to automatically detect the local IP address.
|
||||||
#piholeIP=$(ifconfig eth0 | awk '/inet addr/{print substr($2,6)}')
|
# piholeIP=$(hostname -I)
|
||||||
# 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
|
|
||||||
|
|
||||||
# Config file to hold URL rules
|
# Config file to hold URL rules
|
||||||
eventHorizion="/etc/dnsmasq.d/adList.conf"
|
eventHorizion="/etc/dnsmasq.d/adList.conf"
|
||||||
|
|
Loading…
Reference in a new issue