Add localip support to iOS
This commit is contained in:
parent
da6add25ad
commit
b4144d8299
2
neofetch
2
neofetch
|
@ -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)"
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue