Return host IP when using vmware as vm driver.

Adds the missing case "vmware" to return the host IP.
pull/4255/head
Maximilian Hess 2019-05-14 10:36:14 +02:00
parent 1d3b96be72
commit 9ff02aa808
1 changed files with 2 additions and 0 deletions

View File

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