Add localip support to iOS

This commit is contained in:
Dylan 2016-05-07 21:20:03 +10:00
parent da6add25ad
commit b4144d8299

View file

@ -1735,7 +1735,7 @@ getlocalip () {
localip="$(ip route get 1 | awk '{print $NF;exit}')"
;;
"Mac OS X")
"Mac OS X" | "iPhone OS")
localip="$(ipconfig getifaddr en0)"
[ -z "$localip" ] && localip="$(ipconfig getifaddr en1)"
;;