Force to_i on adapters for forwarded ports in VirtualBox
This commit is contained in:
parent
7e125db669
commit
230a3ca0bf
|
@ -42,7 +42,7 @@ module VagrantPlugins
|
||||||
options ||= {}
|
options ||= {}
|
||||||
@auto_correct = true
|
@auto_correct = true
|
||||||
@auto_correct = options[:auto_correct] if options.has_key?(:auto_correct)
|
@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"
|
@protocol = options[:protocol] || "tcp"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue