Make adapter 1-based for forwarded ports as well

This commit is contained in:
Mitchell Hashimoto 2012-01-03 10:11:07 -08:00
parent 248f087578
commit aac9bb5ec5
1 changed files with 1 additions and 2 deletions

View File

@ -38,12 +38,11 @@ module Vagrant
interfaces = @env[:vm].driver.read_network_interfaces
@env[:vm].config.vm.forwarded_ports.each do |name, options|
adapter = options[:adapter] + 1
message_attributes = {
:name => name,
:guest_port => options[:guestport],
:host_port => options[:hostport],
:adapter => adapter
:adapter => options[:adapter]
}
# Assuming the only reason to establish port forwarding is