Toby Chui 1 год назад
Родитель
Сommit
bebf5d6957
3 измененных файлов с 11 добавлено и 1 удалено
  1. 4 0
      mod/acme/acmewizard/acmewizard.go
  2. 2 1
      web/snippet/acme.html
  3. 5 0
      web/tools/https.html

+ 4 - 0
mod/acme/acmewizard/acmewizard.go

@@ -98,6 +98,10 @@ func isLocalhostListening() (isListening bool, err error) {
 		conn.Close()
 	}
 
+	if isListening {
+		return true, nil
+	}
+
 	return isListening, err
 }
 

+ 2 - 1
web/snippet/acme.html

@@ -115,7 +115,8 @@
     </div>
     <button id="obtainButton" class="ui basic button" type="submit"><i class="yellow refresh icon"></i> Renew Certificate</button>
   </div>
-
+  <div class="ui divider"></div>
+  <small>First time setting up HTTPS?<br>Try out our <a href="../tools/https.html" target="_blank">wizard</a></small>
   <button class="ui basic button"  style="float: right;" onclick="parent.hideSideWrapper();"><i class="remove icon"></i> Cancel</button>
   <br><br><br><br>
   </div>

+ 5 - 0
web/tools/https.html

@@ -21,6 +21,11 @@
         <div class="ui container">
             <div class="ui yellow message">
                 This Wizard require both client and server connected to the internet.
+                <br><b>
+                As different deployment methods might involve different network environment, 
+                this wizard is only provided for assistant and the correctness of the setup is not guaranteed.
+                 If you need to verify your TLS/SSL certificate installation is valid, please seek help 
+                 from IT professionals.</b>
             </div>
             <div class="ui segment">
                 <h3 class="ui header">