lib/vagrant/action/vm/forward_ports.rb in vagrantup-0.7.2 vs lib/vagrant/action/vm/forward_ports.rb in vagrantup-0.7.3
- old
+ new
@@ -123,9 +123,10 @@
def forward_port(name, options)
port = VirtualBox::NATForwardedPort.new
port.name = name
port.guestport = options[:guestport]
port.hostport = options[:hostport]
+ port.protocol = options[:protocol] || :tcp
@env["vm"].vm.network_adapters[options[:adapter]].nat_driver.forwarded_ports << port
end
end
end
end