Return host IP when using vmware as vm driver.
Adds the missing case "vmware" to return the host IP.pull/4255/head
parent
1d3b96be72
commit
9ff02aa808
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue