From 117a9c146aa8a38a5c37d8f7106ecf7bfd14bea7 Mon Sep 17 00:00:00 2001 From: Matt Callaway Date: Fri, 25 May 2012 15:45:18 -0500 Subject: [PATCH] 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. --- lib/vagrant/util/is_port_open.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/util/is_port_open.rb b/lib/vagrant/util/is_port_open.rb index f30c3a180..7e11d0cdb 100644 --- a/lib/vagrant/util/is_port_open.rb +++ b/lib/vagrant/util/is_port_open.rb @@ -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