From 1fbcd549ffa2df74f7d75ef4d911ca3eb2e8f2e8 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 1 Jul 2022 17:11:04 +0100 Subject: Revert "op-mode: T4429: Ability to detect external IP address" --- src/op_mode/show_ip_external.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 src/op_mode/show_ip_external.sh (limited to 'src') diff --git a/src/op_mode/show_ip_external.sh b/src/op_mode/show_ip_external.sh deleted file mode 100755 index 275d05278..000000000 --- a/src/op_mode/show_ip_external.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -# Detect an external IP address -# Use random services for checking - - -array=( - ipinfo.io/ip - ifconfig.me - ipecho.net/plain - icanhazip.com - v4.ident.me - checkip.amazonaws.com -) - -size=${#array[@]} -index=$(($RANDOM % $size)) - -curl --silent ${array[$index]} | tr -d "[:space:]" && echo -- cgit v1.2.3