Skip to content

Commit

Permalink
fix: Check Cert and Key are defined before starting HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianwegge committed Aug 18, 2024
1 parent 59f6d9a commit be09b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func runTemplierServer(
conf,
)
var err error
if conf.TLS != nil {
if conf.TLS.Cert != "" && conf.TLS.Key != "" {
err = http.ListenAndServeTLS(conf.TemplierHost,
conf.TLS.Cert, conf.TLS.Key, srv)
} else {
Expand Down

0 comments on commit be09b2c

Please sign in to comment.