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
1 changed files with 2 additions and 1 deletions

View File

@ -1695,7 +1695,8 @@ get_local_ip() {
;; ;;
"Windows") "Windows")
local_ip="$(ipconfig | awk -F ': ' '/IPv4 Address/ {printf $2}')" local_ip="$(ipconfig | awk -F ': ' '/IPv4 Address/ {printf $2 ", "}')"
local_ip="${local_ip%\,*}"
;; ;;
"Haiku") "Haiku")