Move to hestiaip
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user