mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
set ip even if ip doesn't exist
This commit is contained in:
parent
bcc02c858d
commit
083e820f57
1 changed files with 5 additions and 1 deletions
|
@ -178,7 +178,11 @@ get_real_ip() {
|
||||||
echo $1
|
echo $1
|
||||||
else
|
else
|
||||||
nated_ip=$(grep -H "^NAT='$1'" $VESTA/data/ips/*)
|
nated_ip=$(grep -H "^NAT='$1'" $VESTA/data/ips/*)
|
||||||
echo "$nated_ip" | cut -f 1 -d : | cut -f 7 -d /
|
if [ ! -z "$nated_ip" ]; then
|
||||||
|
echo "$nated_ip" | cut -f 1 -d : | cut -f 7 -d /
|
||||||
|
else
|
||||||
|
get_user_ip
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue