Local IP: [Windows] Support multiple interfaces

This commit is contained in:
Dylan Araps 2016-12-16 09:41:52 +11:00
parent e650f3a9f8
commit ead030199f

View file

@ -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")