Merge pull request #948 from kindjal/master
is_port_open.rb needs to catch ENETUNREACH
This commit is contained in:
commit
ba91169dc4
|
@ -29,7 +29,7 @@ module Vagrant
|
||||||
# to connect.
|
# to connect.
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH
|
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ENETUNREACH
|
||||||
# Any of the above exceptions signal that the port is closed.
|
# Any of the above exceptions signal that the port is closed.
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue