Local IP: [Windows] Support multiple interfaces
This commit is contained in:
parent
e650f3a9f8
commit
ead030199f
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -1695,7 +1695,8 @@ get_local_ip() {
|
|||
;;
|
||||
|
||||
"Windows")
|
||||
local_ip="$(ipconfig | awk -F ': ' '/IPv4 Address/ {printf $2}')"
|
||||
local_ip="$(ipconfig | awk -F ': ' '/IPv4 Address/ {printf $2 ", "}')"
|
||||
local_ip="${local_ip%\,*}"
|
||||
;;
|
||||
|
||||
"Haiku")
|
||||
|
|
Loading…
Reference in a new issue