ddns-scripts: add fallback for default values
authorAndy Chiang <redacted>
Sun, 7 Jun 2026 03:06:48 +0000 (10:06 +0700)
committerFlorian Eckert <redacted>
Tue, 9 Jun 2026 09:19:35 +0000 (11:19 +0200)
In luci, the `interface` value has `o.default = 'wan'` configured.
Due to a behavior fix in 'o.default', values matching the default are
no longer saved. Currently, this is workedaround by disabling
'o.rmempty' in luci, but handling this compatibility fallback on the
backend is a cleaner and superior approach.

Ref: https://github.com/openwrt/luci/commit/b004197a277804ec0c8f092412b91c1d3e5936fa

Signed-off-by: Andy Chiang <redacted>
net/ddns-scripts/Makefile
net/ddns-scripts/files/etc/hotplug.d/iface/ddns

index fd7c7edafcffe80c3404e55469bf04c545c3c788..f81bcc1bcf3386dafb41354ad702a85b13912d78 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.8.3
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 
 PKG_LICENSE:=GPL-2.0
 
index dd58f9180cf01fe2bb0874137193c72e22aa962b..b0f6c98f847275dc4a83e04d67d7a8797a8c2098 100644 (file)
@@ -9,8 +9,7 @@ start_ddns_service() {
 
        local interface
 
-       config_get interface $cfg interface
-       [ -z "$interface" ] && return
+       config_get interface $cfg interface wan
 
        [ "$interface" != "$interface_event" ] && return
 
git clone https://git.99rst.org/PROJECT