Replace broken BSD local ip cmd with a tested working one

This commit is contained in:
Dylan 2016-02-09 18:32:01 +11:00
parent 111caa6356
commit 7ec516860a
1 changed files with 1 additions and 2 deletions

3
fetch
View File

@ -1356,8 +1356,7 @@ getlocalip () {
;;
*"BSD")
localip="$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' \
| grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')"
localip="$(ifconfig | awk '/broadcast/ {print $2}')"
;;
"Windows")