Procházet zdrojové kódy

Maybe don't name all certs '*.pem'

master
Chris Smith před 5 roky
rodič
revize
89c69d7c50
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      dotege.go

+ 1
- 1
dotege.go Zobrazit soubor

@@ -265,7 +265,7 @@ func deployCertForContainer(container *Container) bool {
265 265
 }
266 266
 
267 267
 func deployCert(certificate *SavedCertificate) bool {
268
-	name := fmt.Sprintf("%s.pem", strings.ReplaceAll("*", "_", certificate.Domains[0]))
268
+	name := fmt.Sprintf("%s.pem", strings.ReplaceAll(certificate.Domains[0], "*", "_"))
269 269
 	target := path.Join(config.DefaultCertDestination, name)
270 270
 	content := append(certificate.Certificate, certificate.PrivateKey...)
271 271
 

Načítá se…
Zrušit
Uložit