Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
rthellend committed Dec 6, 2024
1 parent 8b28c35 commit 15fae1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/c2FmZQ/tlsproxy

go 1.23.2
go 1.23.1

require (
github.com/beevik/etree v1.4.1
Expand Down
4 changes: 3 additions & 1 deletion proxy/internal/sshca/sshca.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ func (ca *SSHCA) ServeCertificate(w http.ResponseWriter, req *http.Request) {
http.Error(w, "internal error", http.StatusInternalServerError)
return
}
ca.opts.EventRecorder.Record("ssh certificate issued")
if ca.opts.EventRecorder != nil {
ca.opts.EventRecorder.Record("ssh certificate issued")
}

out := ssh.MarshalAuthorizedKey(cert)
w.Header().Set("cache-control", "no-store")
Expand Down

0 comments on commit 15fae1a

Please sign in to comment.