Removing IP as input
Due to users having issues with the IP not being entered properly, I am restoring the original way to store `piholeIP` until a better solution can be formed.
This commit is contained in:
@ -3,12 +3,7 @@
|
|||||||
# Compiles a list of ad-serving domains by downloading them from multiple sources
|
# Compiles a list of ad-serving domains by downloading them from multiple sources
|
||||||
|
|
||||||
# This script should only be run after you have a static IP address set on the Pi
|
# This script should only be run after you have a static IP address set on the Pi
|
||||||
piholeIP="$1"
|
piholeIP=$(hostname -I)
|
||||||
|
|
||||||
if [[ -n "$piholeIP" ]]; then
|
|
||||||
piholeIP=$(hostname -I|xargs)
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Ad-list sources--one per line in single quotes
|
# Ad-list sources--one per line in single quotes
|
||||||
sources=('https://adaway.org/hosts.txt'
|
sources=('https://adaway.org/hosts.txt'
|
||||||
|
Reference in New Issue
Block a user