Fix issue with port forwarding not respecting protocol option.

This commit is contained in:
Jason Yan 2011-02-25 14:47:08 -08:00 committed by Mitchell Hashimoto
parent 77a1b9a6ef
commit b1bc49c0f3
2 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ module Vagrant
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

View File

@ -35,7 +35,7 @@ module Vagrant
options = {
:guestport => guestport,
:hostport => hostport,
:protocol => "TCP",
:protocol => :tcp,
:adapter => 0,
:auto => false
}.merge(options || {})