summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2022-07-01 17:11:04 +0100
committerGitHub <noreply@github.com>2022-07-01 17:11:04 +0100
commit1fbcd549ffa2df74f7d75ef4d911ca3eb2e8f2e8 (patch)
tree7dba0f128bef7f7c47280125c386186972fceaaf /src/op_mode
parentab27f3f73ad5c728fd5514d34636ab2c8f7abe88 (diff)
downloadvyos-1x-1fbcd549ffa2df74f7d75ef4d911ca3eb2e8f2e8.tar.gz
vyos-1x-1fbcd549ffa2df74f7d75ef4d911ca3eb2e8f2e8.zip
Revert "op-mode: T4429: Ability to detect external IP address"
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/show_ip_external.sh19
1 files changed, 0 insertions, 19 deletions
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