diff options
author | Julien Cassette <julien.cassette@gmail.com> | 2022-10-02 20:14:19 +0200 |
---|---|---|
committer | Julien Cassette <julien.cassette@gmail.com> | 2022-10-02 20:25:20 +0200 |
commit | 85ff9db2bffd3d2bf119300d9297f1b524608e1b (patch) | |
tree | 77dd3f0d6251e0c08208af2abc5b8057dc786eca /applications/luci-app-ddns/htdocs/luci-static/resources | |
parent | 0c5d7dd8d7b04ab6979fb7b6ef953a9a92e37d7a (diff) |
luci-app-ddns: fix creation of custom service (fix #4926)
The `service_name` option must be empty for custom services,
otherwise an error is raised in `dynamic_dns_updater.sh`.
Signed-off-by: Julien Cassette <julien.cassette@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns/htdocs/luci-static/resources')
-rw-r--r-- | applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index 8a8c27c718..d395f411a3 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -477,7 +477,9 @@ return view.extend({ return m.save(function() { uci.add('ddns', 'service', section_id); - uci.set('ddns', section_id, 'service_name', service_value); + if (service_value != '-') { + uci.set('ddns', section_id, 'service_name', service_value); + } uci.set('ddns', section_id, 'use_ipv6', ipv6_value); }).then(L.bind(m.children[1].renderMoreOptionsModal, m.children[1], section_id)); }; |