[DRE-commits] [vagrant-libvirt] 06/163: Fixed port forwarding when using remote libvirt (use a ProxyCommand)
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Apr 24 13:56:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.
commit 31f18b6fe6b08f70f001a2f8ee52b295902e7c02
Author: Benjamin Vanheuverzwijn <vanheuverzwijn at eset.com>
Date: Fri Jul 4 14:21:14 2014 -0400
Fixed port forwarding when using remote libvirt (use a ProxyCommand)
---
lib/vagrant-libvirt/action/forward_ports.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/vagrant-libvirt/action/forward_ports.rb b/lib/vagrant-libvirt/action/forward_ports.rb
index 67a55ec..3e52ed7 100644
--- a/lib/vagrant-libvirt/action/forward_ports.rb
+++ b/lib/vagrant-libvirt/action/forward_ports.rb
@@ -97,6 +97,8 @@ module VagrantPlugins
"IdentityFile=#{pk}"
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...
ssh_cmd = ''
if host_port <= 1024
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git
More information about the Pkg-ruby-extras-commits
mailing list