diff --git a/plugins/providers/virtualbox/model/forwarded_port.rb b/plugins/providers/virtualbox/model/forwarded_port.rb index 8cec67969..234d2adc7 100644 --- a/plugins/providers/virtualbox/model/forwarded_port.rb +++ b/plugins/providers/virtualbox/model/forwarded_port.rb @@ -42,7 +42,7 @@ module VagrantPlugins options ||= {} @auto_correct = true @auto_correct = options[:auto_correct] if options.has_key?(:auto_correct) - @adapter = options[:adapter] || 1 + @adapter = options[:adapter].to_i || 1 @protocol = options[:protocol] || "tcp" end