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

@@ -2089,7 +2089,7 @@ if [ "$iptables" = 'yes' ]; then
fi
# Get public IP
pub_ipv4="$(curl -fsLm5 --retry 2 --ipv4 https://ip.hestiacp.com/)"
pub_ipv4="$(curl -fsLm5 --retry 2 --ipv4 -H "Simple-Hestiacp: yes" https://hestiaip.brepo.ru/)"
if [ -n "$pub_ipv4" ] && [ "$pub_ipv4" != "$ip" ]; then
if [ -e /etc/rc.local ]; then
sed -i '/exit 0/d' /etc/rc.local

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

View File

@@ -2064,7 +2064,7 @@ if [ "$iptables" = 'yes' ]; then
fi
# Get public IP
pub_ipv4="$(curl -fsLm5 --retry 2 --ipv4 https://ip.hestiacp.com/)"
pub_ipv4="$(curl -fsLm5 --retry 2 --ipv4 -H "Simple-Hestiacp: yes" https://hestiaip.brepo.ru/)"
if [ -n "$pub_ipv4" ] && [ "$pub_ipv4" != "$ip" ]; then
if [ -e /etc/rc.local ]; then
sed -i '/exit 0/d' /etc/rc.local