mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-25 20:00:19 +01:00
server/server.go: use TLS config provided by acme/autocert (#567)
Suggestion based on go docs of acme autocert.
This commit is contained in:
parent
45e2654036
commit
891ef14cfb
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue