]> git.99rst.org Git - openwrt-packages.git/commitdiff
ddns-scripts: fix log noise
authorAndy Chiang <redacted>
Sun, 7 Jun 2026 02:52:00 +0000 (09:52 +0700)
committerFlorian Eckert <redacted>
Tue, 9 Jun 2026 09:19:35 +0000 (11:19 +0200)
When fetching the IP via a URL with `force_ipversion` enabled,
a `Busybox nslookup - no support to 'force IP Version' (ignored)`
log is generated periodically. This log is redundant, in this scenario
`force_ipversion` only affects the results fetched by wget/uclient-fetch/curl.
It is perfectly fine for nslookup to query both A/AAAA records simultaneously.

Signed-off-by: Andy Chiang <redacted>
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

index 94d3a5b8c6392083f717d8fa7be8c8a0910db46d..72c5bb05233f79c817526035c5175ffe40f98a31 100644 (file)
@@ -1022,8 +1022,6 @@ get_registered_ip() {
                        write_log 14 "Busybox nslookup - no support for 'DNS over TCP'"
                [ -n "$NSLOOKUP_MUSL" -a -n "$dns_server" ] && \
                        write_log 14 "Busybox compiled with musl - nslookup don't support the use of DNS Server"
-               [ $force_ipversion -ne 0 ] && \
-                       write_log 5 "Busybox nslookup - no support to 'force IP Version' (ignored)"
 
                __RUNPROG="$NSLOOKUP $lookup_host $dns_server >$DATFILE 2>$ERRFILE"
                __PROG="BusyBox nslookup"
git clone https://git.99rst.org/PROJECT