fixes tcp and udp on the same port number GH-1108, GH-1109
fix a bug in forward_port_definitions() in Action::ForwardPorts
This commit is contained in:
parent
54808f5c79
commit
76c9f671f3
|
@ -32,7 +32,8 @@ module VagrantPlugins
|
||||||
# approach.
|
# approach.
|
||||||
guest_port_mapping = {}
|
guest_port_mapping = {}
|
||||||
@env[:machine].config.vm.forwarded_ports.each do |options|
|
@env[:machine].config.vm.forwarded_ports.each do |options|
|
||||||
guest_port_mapping[options[:guestport]] = options
|
key = options[:protocol].to_s + options[:guestport].to_s
|
||||||
|
guest_port_mapping[key] = options
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return the values, since the order doesn't really matter
|
# Return the values, since the order doesn't really matter
|
||||||
|
|
Loading…
Reference in New Issue