Update is_port_open.rb

Solves https://github.com/mitchellh/vagrant/issues/3031 (again)
This commit is contained in:
Hans Van Broeckhoven 2017-04-24 20:09:32 +02:00 committed by GitHub
parent b195037c85
commit 81553263ab
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ module Vagrant
return true
end
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, \
Errno::ENETUNREACH, Errno::EACCES, Errno::ENOTCONN
Errno::ENETUNREACH, Errno::EACCES, Errno::ENOTCONN, \
Errno::EADDRNOTAVAIL
# Any of the above exceptions signal that the port is closed.
return false
end