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

@@ -171,7 +171,7 @@ if [ -e $HESTIA/conf/nopublickip ]; then
ip="$(ls -t $HESTIA/data/ips/ | head -n1)"
$BIN/v-change-sys-ip-nat "$ip" "$ip"
else
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 [ ! -e "$HESTIA/data/ips/$pub_ipv4" ]; then
if [ -z "$(grep -R "$pub_ipv4" $HESTIA/data/ips/)" ]; then
ip="$(ls -t $HESTIA/data/ips/ | head -n1)"