Skip to content
Permalink
Browse files

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

…ation
  • Loading branch information...
Serghey Rodin
Serghey Rodin committed Feb 14, 2019
1 parent 0d9218e commit 6b2f651418785c94c8fbb6fa6cb78bae048d9025
Showing with 1 addition and 1 deletion.
  1. +1 −1 func/ip.sh
@@ -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
}

0 comments on commit 6b2f651

Please sign in to comment.
You can’t perform that action at this time.