mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 04:26:23 -07:00
protection in case there are two or more ips with the same nat association
This commit is contained in:
parent
0d9218e9fc
commit
6b2f651418
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ get_real_ip() {
|
|||
else
|
||||
nat=$(grep -H "^NAT='$1'" $VESTA/data/ips/*)
|
||||
if [ ! -z "$nat" ]; then
|
||||
echo "$nat" |cut -f 1 -d : |cut -f 7 -d /
|
||||
echo "$nat" |cut -f 1 -d : |cut -f 7 -d / |head -n 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue