Skip to content

Commit c208888

Browse files
committed
Add --ipv4 to prevent IPv6 address feedback.
1 parent e037d9b commit c208888

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
@@ -1379,7 +1379,7 @@ if [ "$iptables" = 'yes' ]; then
13791379
fi
13801380

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

13841384
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
13851385
$HESTIA/bin/v-change-sys-ip-nat $ip $pub_ip

install/hst-install-ubuntu.sh

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

13521352
# Get public IP
1353-
pub_ip=$(curl -s https://www.hestiacp.com/what-is-my-ip/)
1353+
pub_ip=$(curl --ipv4 -s https://www.hestiacp.com/what-is-my-ip/)
13541354
if [ ! -z "$pub_ip" ] && [ "$pub_ip" != "$ip" ]; then
13551355
echo "$HESTIA/bin/v-update-sys-ip" >> /etc/rc.local
13561356
$HESTIA/bin/v-change-sys-ip-nat $ip $pub_ip

0 commit comments

Comments
 (0)