filter host IPs to those that resolve on guest when finding addresable IPs on a windows guest
This commit is contained in:
parent
e64f84491e
commit
d820bef6f4
@ -5,7 +5,10 @@ module VagrantPlugins
|
||||
def self.choose_addressable_ip_addr(machine, possible)
|
||||
machine.communicate.tap do |comm|
|
||||
possible.each do |ip|
|
||||
return ip
|
||||
command = "ping -n 1 -w 1 #{ip}"
|
||||
if comm.test(command)
|
||||
return ip
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user