diff --git a/plugins/guests/linux/cap/port.rb b/plugins/guests/linux/cap/port.rb index 62ffb5e7a..556127117 100644 --- a/plugins/guests/linux/cap/port.rb +++ b/plugins/guests/linux/cap/port.rb @@ -3,7 +3,7 @@ module VagrantPlugins module Cap class Port def self.port_open_check(machine, port) - machine.communicate.test("nc -z 127.0.0.1 #{port}") + machine.communicate.test("nc -z -w2 127.0.0.1 #{port}") end end end