Move to hestiaip
This commit is contained in:
@@ -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)"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"docs:dev": "vitepress dev docs",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:serve": "vitepress serve docs",
|
||||
"docs:preview": "vitepress preview docs --port=5173 --host=127.0.0.1",
|
||||
"build": "node build.js",
|
||||
"lint": "prettier --cache --check . && eslint --cache . && stylelint web/css/src/**/*.css && markdownlint-cli2 *.md docs/**/*.md",
|
||||
"lint-staged": "lint-staged",
|
||||
|
||||
Reference in New Issue
Block a user