Replace broken BSD local ip cmd with a tested working one
This commit is contained in:
parent
111caa6356
commit
7ec516860a
1 changed files with 1 additions and 2 deletions
3
fetch
3
fetch
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue