Skip to content

Commit

Permalink
Support for VMs without private/public networking
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Dec 24, 2015
1 parent 66d39f0 commit 1db35fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/vagrant-hostsupdater/HostsUpdater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def getIps
@ui.info 'Skipping adding host entries (config.vm.network hostsupdater: "skip" is set)'
end
end
if not ips.any?
ips.push( '127.0.0.1' )
end
return ips
end

Expand Down

0 comments on commit 1db35fe

Please sign in to comment.