Skip to content
Snippets Groups Projects
Verified Commit 89eb57e6 authored by David Beniamine's avatar David Beniamine
Browse files

Allow direct ip in ignore domains

parent 3bba35ac
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment