Skip to content

Commit

Permalink
fix HostIP
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha committed Apr 18, 2023
1 parent c75f4e4 commit 4eae683
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/minikube/cluster/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func HostIP(host *host.Host, clusterName string) (net.IP, error) {
// user network case
return net.ParseIP("10.0.2.2"), nil
}
// "socket_vmnet" and "vmnet-*" network case
// host ip should be start address of the returned subnet
// "socket_vmnet" and "vmnet-*" network case: host ip should be start address of subnet
vmIP := net.ParseIP(ipString).To4()
if vmIP == nil {
return []byte{}, errors.Wrap(err, "Error converting VM IP address to IPv4 address")
Expand Down

0 comments on commit 4eae683

Please sign in to comment.