Skip to content

Commit

Permalink
server/server.go: use TLS config provided by acme/autocert (#567)
Browse files Browse the repository at this point in the history
Suggestion based on go docs of acme autocert.
  • Loading branch information
stefanbenten authored Jun 20, 2023
1 parent 45e2654 commit 891ef14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,8 @@ func UseLetsEncrypt(hosts []string) OptionFn {
},
}

srvr.tlsConfig = &tls.Config{
GetCertificate: m.GetCertificate,
}
srvr.tlsConfig = m.TLSConfig()
srvr.tlsConfig.GetCertificate = m.GetCertificate
}
}

Expand Down

0 comments on commit 891ef14

Please sign in to comment.