Fix issue 3031
Sometimes in use ports can raise a Errno::EACCES exeptions on Windows hosts.
This commit is contained in:
parent
21736aa5d4
commit
522bf9ff8b
|
@ -29,7 +29,8 @@ module Vagrant
|
||||||
# to connect.
|
# to connect.
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ENETUNREACH
|
rescue Timeout::Error, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, \
|
||||||
|
Errno::ENETUNREACH, Errno::EACCES
|
||||||
# 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