From 1db35fe32dba4ed13f23ef25ba427bf15beb4440 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Wed, 7 Aug 2013 14:47:43 +0100 Subject: [PATCH] Support for VMs without private/public networking --- lib/vagrant-hostsupdater/HostsUpdater.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vagrant-hostsupdater/HostsUpdater.rb b/lib/vagrant-hostsupdater/HostsUpdater.rb index 53a858f..0e2ffd8 100644 --- a/lib/vagrant-hostsupdater/HostsUpdater.rb +++ b/lib/vagrant-hostsupdater/HostsUpdater.rb @@ -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