Skip to content

Commit 491712a

Browse files
committed
Change IP Lookup to subdomain.
1 parent d56d16b commit 491712a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ if [ "$iptables" = 'yes' ]; then
15181518
fi
15191519

15201520
# Get public ip
1521-
pub_ip=$(curl --ipv4 -s https://www.hestiacp.com/what-is-my-ip/)
1521+
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
15221522

15231523
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
15241524
$HESTIA/bin/v-change-sys-ip-nat $ip $pub_ip > /dev/null 2>&1

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ if [ "$iptables" = 'yes' ]; then
14471447
fi
14481448

14491449
# Get public IP
1450-
pub_ip=$(curl --ipv4 -s https://www.hestiacp.com/what-is-my-ip/)
1450+
pub_ip=$(curl --ipv4 -s https://ip.hestiacp.com/)
14511451
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
14521452
echo "$HESTIA/bin/v-update-sys-ip" >> /etc/rc.local
14531453
$HESTIA/bin/v-change-sys-ip-nat $ip $pub_ip > /dev/null 2>&1

0 commit comments

Comments
 (0)