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:
Hadrien Dorio 2012-12-12 01:31:21 +01:00
parent 54808f5c79
commit 76c9f671f3
1 changed files with 2 additions and 1 deletions

View File

@ -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