From: Andy Chiang Date: Sun, 7 Jun 2026 03:06:48 +0000 (+0700) Subject: ddns-scripts: add fallback for default values X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=de4f8fe9e35239e60c80fedcace6b5e6e0807ea9;p=openwrt-packages.git 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 --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index fd7c7edaf..f81bcc1bc 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -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 diff --git a/net/ddns-scripts/files/etc/hotplug.d/iface/ddns b/net/ddns-scripts/files/etc/hotplug.d/iface/ddns index dd58f9180..b0f6c98f8 100644 --- a/net/ddns-scripts/files/etc/hotplug.d/iface/ddns +++ b/net/ddns-scripts/files/etc/hotplug.d/iface/ddns @@ -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