Преглед изворни кода

auto update script executed

tobychui пре 1 година
родитељ
комит
77ec195cc8
3 измењених фајлова са 15 додато и 4 уклоњено
  1. 2 2
      main.go
  2. 1 1
      web/components/rules.html
  3. 12 1
      web/components/subd.html

+ 2 - 2
main.go

@@ -49,9 +49,9 @@ var logOutputToFile = flag.Bool("log", true, "Log terminal output to file")
 
 var (
 	name        = "Zoraxy"
-	version     = "2.6.8"
+	version     = "2.6.9"
 	nodeUUID    = "generic"
-	development = false //Set this to false to use embedded web fs
+	development = true //Set this to false to use embedded web fs
 	bootTime    = time.Now().Unix()
 
 	/*

+ 1 - 1
web/components/rules.html

@@ -429,7 +429,7 @@
         $("#" + endpointType).find(".editBtn").addClass("disabled");
     }
 
-    function exitProxyInlineEdit(){
+    function exitProxyInlineEdit(endpointType){
         listSubd();
         listVdirs();
         $("#" + endpointType).find(".editBtn").removeClass("disabled");

+ 12 - 1
web/components/subd.html

@@ -45,8 +45,19 @@
                         }
                     }
 
+                    let inboundTlsIcon = "";
+                    if ($("#tls").checkbox("is checked")){
+                        inboundTlsIcon = `<i class="green lock icon" title="TLS Mode"></i>`;
+                        if (subd.BypassGlobalTLS){
+                            inboundTlsIcon = `<i class="grey lock icon" title="TLS Bypass Enabled"></i>`;
+                        }
+                    }else{
+                        inboundTlsIcon = `<i class="yellow lock open icon" title="Plain Text Mode"></i>`;
+                    }
+                    
+
                     $("#subdList").append(`<tr eptuuid="${subd.RootOrMatchingDomain}" payload="${subdData}" class="subdEntry">
-                        <td data-label="" editable="true" datatype="inbound"><a href="//${subd.RootOrMatchingDomain}" target="_blank">${subd.RootOrMatchingDomain}</a></td>
+                        <td data-label="" editable="true" datatype="inbound"><a href="//${subd.RootOrMatchingDomain}" target="_blank">${subd.RootOrMatchingDomain}</a> ${inboundTlsIcon}</td>
                         <td data-label="" editable="true" datatype="domain">${subd.Domain} ${tlsIcon}</td>
                         <td data-label="" editable="true" datatype="basicauth">${subd.RequireBasicAuth?`<i class="ui green check icon"></i>`:`<i class="ui grey remove icon"></i>`}</td>
                         <td class="center aligned" editable="true" datatype="action" data-label="">