mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -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
|
||||
else
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue