Bugfix if multiple interfaces are present

This commit is contained in:
trick77 2017-01-08 10:14:40 +01:00
parent d9e949b27c
commit 52d06d906e

View file

@ -235,7 +235,7 @@ chooseInterface() {
# Loop sentinel variable # Loop sentinel variable
local firstLoop=1 local firstLoop=1
if [[ $(echo ${availableInterfaces} | wc -l) -eq 1 ]]; then if [[ $(echo "${availableInterfaces}" | wc -l) -eq 1 ]]; then
PIHOLE_INTERFACE=${availableInterfaces} PIHOLE_INTERFACE=${availableInterfaces}
return return
fi fi