Add localip support to iOS

This commit is contained in:
Dylan 2016-05-07 21:20:03 +10:00
parent da6add25ad
commit b4144d8299
1 changed files with 1 additions and 1 deletions

View File

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