protection in case there are two or more ips with the same nat association

This commit is contained in:
Serghey Rodin 2019-02-14 17:47:58 +02:00
parent 0d9218e9fc
commit 6b2f651418

View file

@ -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
}