mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-11-14 04:44:18 +01:00
Remove debug print statements from SetCertAsDefault
Eliminated unnecessary fmt.Println calls in the SetCertAsDefault method to clean up console output and improve code clarity.
This commit is contained in:
@@ -100,9 +100,7 @@ func (m *Manager) SetCertAsDefault(w http.ResponseWriter, r *http.Request) {
|
||||
originalPemName := filepath.Join(m.CertStore, domainToFilename(cert.Subject.CommonName, "pem"))
|
||||
originalJSONName := filepath.Join(m.CertStore, domainToFilename(cert.Subject.CommonName, "json"))
|
||||
|
||||
fmt.Println(defaultPubKey, originalPemName)
|
||||
os.Rename(defaultPubKey, originalPemName)
|
||||
fmt.Println(defaultPriKey, originalKeyName)
|
||||
os.Rename(defaultPriKey, originalKeyName)
|
||||
if utils.FileExists(defaultJSON) {
|
||||
os.Rename(defaultJSON, originalJSONName)
|
||||
|
||||
Reference in New Issue
Block a user