Procházet zdrojové kódy

auto update script executed

Toby Chui před 1 rokem
rodič
revize
8ecd9c037d
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      cert.go

+ 2 - 2
cert.go

@@ -111,7 +111,7 @@ func handleListCertificate(w http.ResponseWriter, r *http.Request) {
 
 // List all certificates and map all their domains to the cert filename
 func handleListDomains(w http.ResponseWriter, r *http.Request) {
-	filenames, err := os.ReadDir("./certs/")
+	filenames, err := os.ReadDir("./conf/certs/")
 
 	if err != nil {
 		utils.SendErrorResponse(w, err.Error())
@@ -123,7 +123,7 @@ func handleListDomains(w http.ResponseWriter, r *http.Request) {
 		if filename.IsDir() {
 			continue
 		}
-		certFilepath := filepath.Join("./certs/", filename.Name())
+		certFilepath := filepath.Join("./conf/certs/", filename.Name())
 
 		certBtyes, err := os.ReadFile(certFilepath)
 		if err != nil {