Add localip support to iOS
This commit is contained in:
parent
da6add25ad
commit
b4144d8299
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -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)"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue