From 89eb57e6470135b9d8641ec1f3e2f890700457f3 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Wed, 5 Mar 2025 14:04:06 +0100
Subject: [PATCH] Allow direct ip in ignore domains

---
 utils/configure_base_tools.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/configure_base_tools.sh b/utils/configure_base_tools.sh
index cd3f851..79aa8cb 100755
--- a/utils/configure_base_tools.sh
+++ b/utils/configure_base_tools.sh
@@ -52,6 +52,9 @@ ignoreips=()
 for domain in "${IGNORE_DOMAINS[@]}"; do
     # Use dig to get the IP address
     ip=$(dig +short "$domain")
+    if [ -z "$ip" ]; then
+        ip=$domain
+    fi
     ignoreips=("${ignoreips[@]}" $ip)
     # Displays the domain name and IP addresss
     echo "$domain : $ip"
-- 
GitLab