mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-15 09:29:23 +02:00
Compare commits
2 Commits
39e05032c9
...
v3.2.5r2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9230f9374d | ||
![]() |
6493a82e5f |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -61,3 +61,4 @@ www/html/index.html
|
||||
*.exe
|
||||
/src/dist
|
||||
|
||||
/src/plugins
|
||||
|
@@ -389,6 +389,8 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
|
||||
//TLS
|
||||
BypassGlobalTLS: useBypassGlobalTLS,
|
||||
AccessFilterUUID: accessRuleID,
|
||||
TlsOptions: tlscert.GetDefaultHostSpecificTlsBehavior(),
|
||||
|
||||
//VDir
|
||||
VirtualDirectories: []*dynamicproxy.VirtualDirectoryEndpoint{},
|
||||
//Custom headers
|
||||
|
@@ -1423,11 +1423,17 @@
|
||||
|
||||
/* ------------ TLS ------------ */
|
||||
updateTlsResolveList(uuid);
|
||||
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);
|
||||
|
||||
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{
|
||||
//Use default options
|
||||
editor.find(".Tls_EnableSNI").prop("checked", true);
|
||||
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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user