提交 9ff02aa8 编写于 作者: M Maximilian Hess

Return host IP when using vmware as vm driver.

Adds the missing case "vmware" to return the host IP.
上级 1d3b96be
......@@ -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")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册