Merge pull request #1260 from hdorio/master

Attempt to fix #1108, #1109, tcp and udp port on the same port number
This commit is contained in:
Mitchell Hashimoto 2013-01-03 17:13:07 -08:00
commit a4896293ff
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ module VagrantPlugins
# approach.
guest_port_mapping = {}
@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
# Return the values, since the order doesn't really matter