mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
luci-app-ddns: fix cacert param write for all cases
follow-up to 929c520def
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -457,8 +457,7 @@ return view.extend({
|
||||
o.description = _('CA certificate bundle file that will be used to download services data. Set IGNORE to skip certificate validation.');
|
||||
o.placeholder = 'IGNORE';
|
||||
o.write = function(section_id, value) {
|
||||
if(value == 'ignore')
|
||||
uci.set('ddns', section_id, 'cacert', value.toUpperCase());
|
||||
uci.set('ddns', section_id, 'cacert', value == 'ignore' ? value.toUpperCase() : value);
|
||||
};
|
||||
|
||||
o = s.taboption('global', form.Value, 'services_url', _('Services URL Download'));
|
||||
@@ -810,8 +809,7 @@ return view.extend({
|
||||
o.rmempty = false;
|
||||
o.optional = true;
|
||||
o.write = function(section_id, value) {
|
||||
if(value == 'ignore')
|
||||
uci.set('ddns', section_id, 'cacert', value.toUpperCase());
|
||||
uci.set('ddns', section_id, 'cacert', value == 'ignore' ? value.toUpperCase() : value);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user