From 6aea97f0da6fcbf961ade75ccf2d63083f818540 Mon Sep 17 00:00:00 2001 From: Matrix Zou Date: Fri, 31 May 2024 15:27:35 +0400 Subject: [PATCH] Fix segment wan_ip (#430) * Fix protocol error for wan-ip url, change from `http` to `https` --- segments/wan_ip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segments/wan_ip.sh b/segments/wan_ip.sh index 1287d5de..75647f4b 100755 --- a/segments/wan_ip.sh +++ b/segments/wan_ip.sh @@ -39,7 +39,7 @@ run_segment() { fi if [ -z "$wan_ip" ]; then - if wan_ip=$(curl --max-time 2 -s http://whatismyip.akamai.com/); then + if wan_ip=$(curl --max-time 2 -s https://whatismyip.akamai.com/); then echo "${wan_ip}" >"$tmp_file" elif [ -f "${tmp_file}" ]; then wan_ip=$(cat "$tmp_file")