diff --git a/func/ip.sh b/func/ip.sh index c99a3272b..e70564605 100644 --- a/func/ip.sh +++ b/func/ip.sh @@ -216,6 +216,7 @@ get_user_ip() { if [ ! -z "$nat" ]; then ip=$nat fi + grep -q "^vagrant" /etc/passwd && [ `hostname -I | wc -w` -gt 1 ] && ip=`hostname -I | cut -f 2 -d " "` } # Validate ip address