diff --git a/plugins/providers/virtualbox/action/forward_ports.rb b/plugins/providers/virtualbox/action/forward_ports.rb index 0afc71115..97524b75e 100644 --- a/plugins/providers/virtualbox/action/forward_ports.rb +++ b/plugins/providers/virtualbox/action/forward_ports.rb @@ -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