Host only network works properly on multiple adapters [closes GH-365]
This commit is contained in:
parent
b4c9ec60de
commit
179845a36e
|
@ -7,6 +7,7 @@
|
|||
downloader. [GH-403]
|
||||
- New `:inline` option for shell provisioner to provide inline
|
||||
scripts as a string. [GH-395]
|
||||
- Host only network now properly works on multiple adapters. [GH-365]
|
||||
|
||||
## 0.7.6 (July 2, 2011)
|
||||
|
||||
|
|
|
@ -25,8 +25,15 @@ module Vagrant
|
|||
|
||||
if enable_network?
|
||||
@env.ui.info I18n.t("vagrant.actions.vm.network.enabling")
|
||||
@env.env.config.vm.network_options.compact.each do |network_options|
|
||||
|
||||
# Prepare for new networks...
|
||||
options = @env.env.config.vm.network_options.compact
|
||||
options.each do |network_options|
|
||||
@env["vm"].system.prepare_host_only_network(network_options)
|
||||
end
|
||||
|
||||
# Then enable the networks...
|
||||
options.each do |network_options|
|
||||
@env["vm"].system.enable_host_only_network(network_options)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue