This commit is contained in:
abicorios 2025-04-27 14:25:49 +00:00 committed by GitHub
commit 0f53c8f5b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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