update 2025-08-24 09:28:20
This commit is contained in:
parent
6927bde2c6
commit
2c20f43520
@ -1086,7 +1086,6 @@ function renderNodeSettings(section, data, features, main_node, routing_mode) {
|
||||
o.onclick = L.bind(hp.uploadCertificate, this, _('certificate'), 'client_ca');
|
||||
o.modalonly = true;
|
||||
|
||||
if (features.with_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.'));
|
||||
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.onclick = L.bind(hp.uploadCertificate, this, _('ECH config'), 'client_ech_conf');
|
||||
o.modalonly = true;
|
||||
}
|
||||
|
||||
if (features.with_utls) {
|
||||
o = s.option(form.ListValue, 'tls_utls', _('uTLS fingerprint'),
|
||||
|
@ -186,8 +186,15 @@ uci.foreach(uciconfig, ucidnsrule, (cfg) => {
|
||||
if (dns_server_migration[cfg.server]) {
|
||||
if (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)
|
||||
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');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user