Fix port forwarding ssh process cleanup

The presence of quotes in the command to spawn caused ruby to run it via
a shell instead of running it directly. This broke our code for
killing the ssh processes when the VM is halted.

Closes #265
This commit is contained in:
Brian Pitts 2014-11-01 18:54:37 -05:00
parent 9e0f0de35e
commit 803719d3f6

View File

@ -83,7 +83,8 @@ module VagrantPlugins
gateway_ports)
ssh_info = machine.ssh_info
params = %W(
"-L #{host_ip}:#{host_port}:#{guest_ip}:#{guest_port}"
-L
#{host_ip}:#{host_port}:#{guest_ip}:#{guest_port}
-N
#{ssh_info[:host]}
).join(' ')