mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-11-14 12:54:10 +01:00
Update src/mod/tlscert/handler.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -88,7 +88,6 @@ func (m *Manager) SetCertAsDefault(w http.ResponseWriter, r *http.Request) {
|
||||
defaultPriKey := filepath.Join(m.CertStore, "default.key")
|
||||
defaultJSON := filepath.Join(m.CertStore, "default.json")
|
||||
|
||||
fmt.Println(defaultPubKey, defaultPriKey, defaultJSON)
|
||||
if utils.FileExists(defaultPubKey) && utils.FileExists(defaultPriKey) {
|
||||
//Move the existing default cert to its original name
|
||||
certBytes, err := os.ReadFile(defaultPubKey)
|
||||
|
||||
Reference in New Issue
Block a user