Merge pull request #1116 from pi-hole/fix/multi_interface

Fix/multi interface
This commit is contained in:
Mcat12 2017-01-08 17:57:29 -05:00 committed by GitHub
commit a713cf7952

View file

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