Merge pull request #206 from bvanheu/bugfix/portforwarding_proxycommand

Fixed port forwarding when using remote libvirt (use a ProxyCommand)
This commit is contained in:
Dmitry Vasilets 2014-08-11 16:16:39 +02:00
commit f1648e4c88

View File

@ -97,6 +97,8 @@ module VagrantPlugins
"IdentityFile=#{pk}" "IdentityFile=#{pk}"
end).map { |s| s.prepend('-o ') }.join(' ') end).map { |s| s.prepend('-o ') }.join(' ')
options += " -o ProxyCommand=\"#{ssh_info[:proxy_command]}\"" if machine.provider_config.connect_via_ssh
# TODO: instead of this, try and lock and get the stdin from spawn... # TODO: instead of this, try and lock and get the stdin from spawn...
ssh_cmd = '' ssh_cmd = ''
if host_port <= 1024 if host_port <= 1024