mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-15 01:19:19 +02:00
Compare commits
4 Commits
39e05032c9
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0f621d0edd | ||
![]() |
9230f9374d | ||
![]() |
c982541a40 | ||
![]() |
6493a82e5f |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -61,3 +61,4 @@ www/html/index.html
|
|||||||
*.exe
|
*.exe
|
||||||
/src/dist
|
/src/dist
|
||||||
|
|
||||||
|
/src/plugins
|
||||||
|
@@ -73,7 +73,10 @@ def start_zerotier():
|
|||||||
|
|
||||||
os.makedirs(config_dir, exist_ok=True)
|
os.makedirs(config_dir, exist_ok=True)
|
||||||
|
|
||||||
os.symlink(config_dir, zt_path, target_is_directory=True)
|
try:
|
||||||
|
os.symlink(config_dir, zt_path, target_is_directory=True)
|
||||||
|
except FileExistsError:
|
||||||
|
print(f"Symlink {zt_path} already exists, skipping creation.")
|
||||||
|
|
||||||
zerotier_proc = popen(["zerotier-one"])
|
zerotier_proc = popen(["zerotier-one"])
|
||||||
|
|
||||||
|
@@ -389,6 +389,8 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
|
|||||||
//TLS
|
//TLS
|
||||||
BypassGlobalTLS: useBypassGlobalTLS,
|
BypassGlobalTLS: useBypassGlobalTLS,
|
||||||
AccessFilterUUID: accessRuleID,
|
AccessFilterUUID: accessRuleID,
|
||||||
|
TlsOptions: tlscert.GetDefaultHostSpecificTlsBehavior(),
|
||||||
|
|
||||||
//VDir
|
//VDir
|
||||||
VirtualDirectories: []*dynamicproxy.VirtualDirectoryEndpoint{},
|
VirtualDirectories: []*dynamicproxy.VirtualDirectoryEndpoint{},
|
||||||
//Custom headers
|
//Custom headers
|
||||||
|
@@ -1423,10 +1423,16 @@
|
|||||||
|
|
||||||
/* ------------ TLS ------------ */
|
/* ------------ TLS ------------ */
|
||||||
updateTlsResolveList(uuid);
|
updateTlsResolveList(uuid);
|
||||||
editor.find(".Tls_EnableSNI").prop("checked", !subd.TlsOptions.DisableSNI);
|
if (subd.TlsOptions){
|
||||||
|
editor.find(".Tls_EnableSNI").prop("checked", !subd.TlsOptions.DisableSNI);
|
||||||
editor.find(".Tls_EnableLegacyCertificateMatching").prop("checked", !subd.TlsOptions.DisableLegacyCertificateMatching);
|
editor.find(".Tls_EnableLegacyCertificateMatching").prop("checked", !subd.TlsOptions.DisableLegacyCertificateMatching);
|
||||||
editor.find(".Tls_EnableAutoHTTPS").prop("checked", !!subd.TlsOptions.EnableAutoHTTPS);
|
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() {
|
editor.find(".Tls_EnableSNI").off("change").on("change", function() {
|
||||||
saveTlsConfigs(uuid);
|
saveTlsConfigs(uuid);
|
||||||
|
Reference in New Issue
Block a user