Skip to content

Commit

Permalink
luci-app-homeproxy: sync mainline
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Dec 15, 2024
1 parent d94f364 commit 55d4b68
Show file tree
Hide file tree
Showing 13 changed files with 10,023 additions and 3,693 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1050,9 +1050,19 @@ function renderNodeSettings(section, data, features, main_node, routing_mode) {
o.default = o.disabled;
o.modalonly = true;

o = s.option(form.DynamicList, 'tls_ech_config', _('ECH config'));
o = s.option(form.Value, 'tls_ech_config_path', _('ECH config path'),
_('The path to the ECH config, in PEM format. If empty, load from DNS will be attempted.'));
o.value('/etc/homeproxy/certs/client_ech_conf.pem');
o.depends('tls_ech', '1');
o.modalonly = true;

o = s.option(form.Button, '_upload_ech_config', _('Upload ECH config'),
_('<strong>Save your configuration before uploading files!</strong>'));
o.inputstyle = 'action';
o.inputtitle = _('Upload...');
o.depends({'tls_ech': '1', 'tls_ech_config_path': '/etc/homeproxy/certs/client_ech_conf.pem'});
o.onclick = L.bind(hp.uploadCertificate, this, _('ECH config'), 'client_ech_conf');
o.modalonly = true;
}

if (features.with_utls) {
Expand Down
Loading

0 comments on commit 55d4b68

Please sign in to comment.