ddns-scripts: add fallback for default values

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 <AndyChiang_git@outlook.com>
This commit is contained in:
Andy Chiang authored and Florian Eckert committed 2026-06-09 11:19:35 +02:00
1 parent 52b5b8e655
commit de4f8fe9e3
2 files changed
+2 -3

No files matched your search

+1 -1
View 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
@@ -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