update 2025-08-24 09:28:20

This commit is contained in:
actions-user 2025-08-24 09:28:20 +08:00
parent 6927bde2c6
commit 2c20f43520
2 changed files with 26 additions and 21 deletions

View File

@ -1086,7 +1086,6 @@ function renderNodeSettings(section, data, features, main_node, routing_mode) {
o.onclick = L.bind(hp.uploadCertificate, this, _('certificate'), 'client_ca'); o.onclick = L.bind(hp.uploadCertificate, this, _('certificate'), 'client_ca');
o.modalonly = true; o.modalonly = true;
if (features.with_ech) {
o = s.option(form.Flag, 'tls_ech', _('Enable ECH'), o = s.option(form.Flag, 'tls_ech', _('Enable ECH'),
_('ECH (Encrypted Client Hello) is a TLS extension that allows a client to encrypt the first part of its ClientHello message.')); _('ECH (Encrypted Client Hello) is a TLS extension that allows a client to encrypt the first part of its ClientHello message.'));
o.depends('tls', '1'); o.depends('tls', '1');
@ -1109,7 +1108,6 @@ function renderNodeSettings(section, data, features, main_node, routing_mode) {
o.depends({'tls_ech': '1', 'tls_ech_config_path': '/etc/homeproxy/certs/client_ech_conf.pem'}); 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.onclick = L.bind(hp.uploadCertificate, this, _('ECH config'), 'client_ech_conf');
o.modalonly = true; o.modalonly = true;
}
if (features.with_utls) { if (features.with_utls) {
o = s.option(form.ListValue, 'tls_utls', _('uTLS fingerprint'), o = s.option(form.ListValue, 'tls_utls', _('uTLS fingerprint'),

View File

@ -186,8 +186,15 @@ uci.foreach(uciconfig, ucidnsrule, (cfg) => {
if (dns_server_migration[cfg.server]) { if (dns_server_migration[cfg.server]) {
if (dns_server_migration[cfg.server].strategy) if (dns_server_migration[cfg.server].strategy)
uci.set(uciconfig, cfg['.name'], 'strategy', dns_server_migration[cfg.server].strategy); uci.set(uciconfig, cfg['.name'], 'strategy', dns_server_migration[cfg.server].strategy);
if (dns_server_migration[cfg.server].client_subnet) if (dns_server_migration[cfg.server].client_subnet)
uci.set(uciconfig, cfg['.name'], 'client_subnet', dns_server_migration[cfg.server].client_subnet); uci.set(uciconfig, cfg['.name'], 'client_subnet', dns_server_migration[cfg.server].client_subnet);
if (dns_server_migration[cfg.server].rcode) {
uci.set(uciconfig, cfg['.name'], 'action', 'predefined');
uci.set(uciconfig, cfg['.name'], 'rcode', dns_server_migration[cfg.server].rcode);
uci.delete(uciconfig, cfg['.name'], 'server');
}
} }
}); });