On Linux where IPv6 is disabled, where /etc/hosts has '::1 localhost', a socket connect to localhost 2222 results in ENETUNREACH which needs to be caught as per this patch.

This commit is contained in:
Matt Callaway 2012-05-25 15:45:18 -05:00
parent 268b13b799
commit 117a9c146a
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ module Vagrant
# to connect.
return true
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.
return false
end