Fix issue with port forwarding not respecting protocol option.
This commit is contained in:
parent
77a1b9a6ef
commit
b1bc49c0f3
|
@ -125,6 +125,7 @@ module Vagrant
|
||||||
port.name = name
|
port.name = name
|
||||||
port.guestport = options[:guestport]
|
port.guestport = options[:guestport]
|
||||||
port.hostport = options[:hostport]
|
port.hostport = options[:hostport]
|
||||||
|
port.protocol = options[:protocol] || :tcp
|
||||||
@env["vm"].vm.network_adapters[options[:adapter]].nat_driver.forwarded_ports << port
|
@env["vm"].vm.network_adapters[options[:adapter]].nat_driver.forwarded_ports << port
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -35,7 +35,7 @@ module Vagrant
|
||||||
options = {
|
options = {
|
||||||
:guestport => guestport,
|
:guestport => guestport,
|
||||||
:hostport => hostport,
|
:hostport => hostport,
|
||||||
:protocol => "TCP",
|
:protocol => :tcp,
|
||||||
:adapter => 0,
|
:adapter => 0,
|
||||||
:auto => false
|
:auto => false
|
||||||
}.merge(options || {})
|
}.merge(options || {})
|
||||||
|
|
Loading…
Reference in New Issue