Merge branch 'main' into v3.2.6

This commit is contained in:
Toby Chui
2025-09-06 17:48:22 +08:00
committed by GitHub
5 changed files with 42 additions and 5 deletions

View File

@@ -390,6 +390,8 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
//TLS
BypassGlobalTLS: useBypassGlobalTLS,
AccessFilterUUID: accessRuleID,
TlsOptions: tlscert.GetDefaultHostSpecificTlsBehavior(),
//VDir
VirtualDirectories: []*dynamicproxy.VirtualDirectoryEndpoint{},
//Custom headers

View File

@@ -1426,17 +1426,17 @@
/* ------------ TLS ------------ */
updateTlsResolveList(uuid);
if (subd.TlsOptions != null){
//Use the saved settings
if (subd.TlsOptions){
editor.find(".Tls_EnableSNI").prop("checked", !subd.TlsOptions.DisableSNI);
editor.find(".Tls_EnableLegacyCertificateMatching").prop("checked", !subd.TlsOptions.DisableLegacyCertificateMatching);
editor.find(".Tls_EnableAutoHTTPS").prop("checked", !!subd.TlsOptions.EnableAutoHTTPS);
}else{
//Default settings
//Use default options
editor.find(".Tls_EnableSNI").prop("checked", true);
editor.find(".Tls_EnableLegacyCertificateMatching").prop("checked", false);
editor.find(".Tls_EnableLegacyCertificateMatching").prop("checked", true);
editor.find(".Tls_EnableAutoHTTPS").prop("checked", false);
}
editor.find(".Tls_EnableSNI").off("change").on("change", function() {
saveTlsConfigs(uuid);
});