From d9c1b4b3fc05f110152267a840432e8c4564f806 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 25 Mar 2013 14:32:15 -0700 Subject: [PATCH] Default forward port adapter for VirtualBox should be 1 --- plugins/providers/virtualbox/model/forwarded_port.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/virtualbox/model/forwarded_port.rb b/plugins/providers/virtualbox/model/forwarded_port.rb index 234d2adc7..88c5c115d 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].to_i || 1 + @adapter = (options[:adapter] || 1).to_i @protocol = options[:protocol] || "tcp" end