mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
luci-app-uhttpd: bugfix
bug fix luci-app-uhttpd Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
This commit is contained in:
committed by
Hannu Nyman
parent
2ea7e7fb41
commit
855e38245e
@@ -57,9 +57,6 @@ return view.extend({
|
||||
lhttps = s.taboption('general', form.DynamicList, 'listen_https', _('HTTPS listener (address:port)'), _('Bind to specific interface:port (by specifying interface address)'));
|
||||
lhttps.datatype = 'list(ipaddrport(1))';
|
||||
|
||||
var cert = uci.get('uhttpd', 'main', 'cert');
|
||||
var key = uci.get('uhttpd', 'main', 'key');
|
||||
|
||||
lhttps.validate = function (section_id, value) {
|
||||
let have_https_listener = false;
|
||||
let have_http_listener = false;
|
||||
@@ -95,8 +92,6 @@ return view.extend({
|
||||
return true;
|
||||
};
|
||||
|
||||
lhttps.depends({ cert, key });
|
||||
|
||||
o = s.taboption('general', form.Flag, 'redirect_https', _('Redirect all HTTP to HTTPS'));
|
||||
o.default = o.enabled;
|
||||
o.rmempty = false;
|
||||
|
||||
Reference in New Issue
Block a user