Browse Source

Added wildcard certificate rewrite function

Toby Chui 7 months ago
parent
commit
520c9953f1
2 changed files with 7 additions and 2 deletions
  1. 2 2
      main.go
  2. 5 0
      web/components/cert.html

+ 2 - 2
main.go

@@ -57,9 +57,9 @@ var enableAutoUpdate = flag.Bool("cfgupgrade", true, "Enable auto config upgrade
 
 var (
 	name        = "Zoraxy"
-	version     = "3.0.9"
+	version     = "3.1.0"
 	nodeUUID    = "generic" //System uuid, in uuidv4 format
-	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()
 
 	/*

+ 5 - 0
web/components/cert.html

@@ -161,6 +161,11 @@
             $(btn).addClass('disabled');
             $(btn).html(`<i class="ui loading spinner icon"></i>`);
         }
+
+        if (domain.includes("_.")){
+            domain = domain.replace("_.","*.");
+        }
+
         obtainCertificate(domain, dns, defaultCA.trim(), function(succ){
             if (btn != undefined){
                 $(btn).removeClass('disabled');