Merge pull request #3138 from dcooper16/fix_SC2021

Fix Shellcheck SC2021
This commit is contained in:
Dirk Wetter
2026-09-14 10:00:28 +02:00
committed by GitHub
+1 -1
View File
@@ -23429,7 +23429,7 @@ determine_rdns() {
# circumstances (see #1506) can show up here. The blacklist is taken from RFC 1912 ("Allowable characters in a # circumstances (see #1506) can show up here. The blacklist is taken from RFC 1912 ("Allowable characters in a
# label for a host name are only ASCII, letters, digits, and the `-' character") # label for a host name are only ASCII, letters, digits, and the `-' character")
while read -r line; do while read -r line; do
line="$(tr -dc '[a-zA-Z0-9-_.]' <<< "$line")" line="$(tr -dc 'a-zA-Z0-9-_.' <<< "$line")"
[[ -z "$rdns" ]] && rdns="$line" || rdns="$rdns $line" [[ -z "$rdns" ]] && rdns="$line" || rdns="$rdns $line"
done <<< "$rDNS" done <<< "$rDNS"
rDNS="$rdns" rDNS="$rdns"