guests/linux: set a timeout on nc
This commit is contained in:
parent
e578e91e3a
commit
19c9973a0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue