mirror of
https://github.com/openwrt/packages.git
synced 2026-12-02 18:05:31 +04:00
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:
1 parent
52b5b8e655
commit
de4f8fe9e3
2 files changed
+2
-3
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user