mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Automatic IP detection with all locale
This commit is contained in:
parent
7809ee386e
commit
d586ba3126
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@
|
|||
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
|
||||
|
||||
# Config file to hold URL rules
|
||||
eventHorizion="/etc/dnsmasq.d/adList.conf"
|
||||
|
|
Loading…
Reference in a new issue