diff --git a/lib/vagrant-lxc/action/forward_ports.rb b/lib/vagrant-lxc/action/forward_ports.rb index d3eb2a7e..e45f7668 100644 --- a/lib/vagrant-lxc/action/forward_ports.rb +++ b/lib/vagrant-lxc/action/forward_ports.rb @@ -81,8 +81,7 @@ def compile_forwarded_ports(config) def redirect_port(host_ip, host_port, guest_ip, guest_port) if redir_version >= 3 - params = %W( :#{host_port} #{guest_ip}:#{guest_port} ) - params[0] = "#{host_ip}:#{host_port}" if host_ip + params = %W( -n #{host_ip}:#{host_port} #{guest_ip}:#{guest_port} ) else params = %W( --lport=#{host_port} --caddr=#{guest_ip} --cport=#{guest_port} ) params.unshift "--laddr=#{host_ip}" if host_ip