Skip to content

Commit

Permalink
Return host IP when using vmware as vm driver.
Browse files Browse the repository at this point in the history
Adds the missing case "vmware" to return the host IP.
  • Loading branch information
ne0h committed May 15, 2019
1 parent 1d3b96b commit 07abf66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ func GetVMHostIP(host *host.Host) (net.IP, error) {
return ip, nil
case "xhyve", "hyperkit":
return net.ParseIP("192.168.64.1"), nil
case "vmware":
return net.ParseIP("192.168.4.1"), nil
default:
return []byte{}, errors.New("Error, attempted to get host ip address for unsupported driver")
}
Expand Down

0 comments on commit 07abf66

Please sign in to comment.