Update v-update-sys-ip

This commit is contained in:
myvesta 2020-07-26 04:58:28 +02:00 committed by GitHub
commit 8728c239cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ for ip in $ips; do
done done
# Updating NAT # Updating NAT
pub_ip=$(curl -s https://scripts.myvestacp.com/ip.php) pub_ip=$(curl -4 -s https://scripts.myvestacp.com/ip.php)
if [ ! -e "$VESTA/data/ips/$pub_ip" ]; then if [ ! -e "$VESTA/data/ips/$pub_ip" ]; then
if [ -z "$(grep -R "$pub_ip" $VESTA/data/ips/)" ]; then if [ -z "$(grep -R "$pub_ip" $VESTA/data/ips/)" ]; then
ip=$(ls -t $VESTA/data/ips/ |head -n1) ip=$(ls -t $VESTA/data/ips/ |head -n1)