Move to hestiaip

This commit is contained in:
Alexey Berezhok
2024-08-20 23:35:43 +03:00
parent 9b8f6f89fa
commit cce8d44f91
5 changed files with 5 additions and 4 deletions

View File

@@ -1892,7 +1892,7 @@ fi
# Get public IP
pub_ip=$ip
if [ "$nopublicip" = 'no' ]; then
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
pub_ip=$(curl -fsLm5 --retry 2 --ipv4 -H "Simple-Hestiacp: yes" https://hestiaip.brepo.ru/)
if [ -n "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
$HESTIA/bin/v-change-sys-ip-nat $ip $pub_ip > /dev/null 2>&1