Skip to content

Commit 6aea97f

Browse files
authored
Fix segment wan_ip (#430)
* Fix protocol error for wan-ip url, change from `http` to `https`
1 parent 29143d8 commit 6aea97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

segments/wan_ip.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ run_segment() {
3939
fi
4040

4141
if [ -z "$wan_ip" ]; then
42-
if wan_ip=$(curl --max-time 2 -s http://whatismyip.akamai.com/); then
42+
if wan_ip=$(curl --max-time 2 -s https://whatismyip.akamai.com/); then
4343
echo "${wan_ip}" >"$tmp_file"
4444
elif [ -f "${tmp_file}" ]; then
4545
wan_ip=$(cat "$tmp_file")

0 commit comments

Comments
 (0)