summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/un-cloudflare.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/un-cloudflare.sh b/tools/un-cloudflare.sh
index 3dc3beb..1b0440a 100755
--- a/tools/un-cloudflare.sh
+++ b/tools/un-cloudflare.sh
@@ -6,7 +6,7 @@ file="services-full.json"
while read -r line; do
if [[ "$line" == "\"https://"* ]]; then
- domain=$(echo "$line" | sed -e "s/^\"https:\/\///" -e "s/\",//" -e "s/\"//")
+ domain=$(echo "$line" | sed -e "s/^\"https:\/\///" -e "s/\",//" -e "s/\"//" | awk -F '|' '{print $1}')
ips=$(dig "$domain" +short || true)
cf=0
echo "$domain"