guests/linux: set a timeout on nc

This commit is contained in:
Mitchell Hashimoto 2014-04-17 15:10:32 -07:00
parent e578e91e3a
commit 19c9973a0d
1 changed files with 1 additions and 1 deletions

View File

@ -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