Add --web for sending a confirmation string when executed from the web interface. This is necessary as the "Reloading DNS service" message does not always propagate through to the web interface when reloading pihole-FTL takes a while.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-04-25 15:01:13 +02:00
parent cce66a13b6
commit a2a7e80007
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -17,6 +17,7 @@ reload=false
addmode=true
verbose=true
wildcard=false
web=false
domList=()
@ -224,6 +225,7 @@ for var in "$@"; do
"-h" | "--help" ) helpFunc;;
"-l" | "--list" ) Displaylist;;
"--nuke" ) NukeList;;
"--web" ) web=true;;
* ) HandleOther "${var}";;
esac
done
@ -236,6 +238,11 @@ fi
ProcessDomainList
# Used on web interface
if $web; then
echo "DONE"
fi
if [[ "${reload}" != false ]]; then
pihole restartdns reload
fi