From 1dabf99fa8aca6ec3b7a514133c38aa88243a80c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 29 Jan 2026 09:59:16 -0600 Subject: [PATCH] Fix duplicate country entries --- conduit.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conduit.sh b/conduit.sh index c3c9cde..6c1025d 100644 --- a/conduit.sh +++ b/conduit.sh @@ -1534,6 +1534,8 @@ process_batch() { if [ -z "$country" ]; then country=$(geo_lookup "$ip") fi + # Strip country code prefix (e.g. "US, United States" -> "United States") + country=$(echo "$country" | sed 's/^[A-Z][A-Z], //') # Normalize case "$country" in *Iran*) country="Iran - #FreeIran" ;;