mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
require tlsCert and tlsKey to be nonempty
Co-authored-by: kegsay <kegsay@gmail.com>
This commit is contained in:
parent
d066dce13c
commit
c76c04128e
2
v3.go
2
v3.go
@ -160,7 +160,7 @@ func RunSyncV3Server(h http.Handler, bindAddr, destV2Server, tlsCert, tlsKey str
|
||||
|
||||
// Block forever
|
||||
var err error
|
||||
if tlsCert != "" {
|
||||
if tlsCert != "" && tlsKey != "" {
|
||||
logger.Info().Msgf("listening TLS on %s", bindAddr)
|
||||
err = http.ListenAndServeTLS(bindAddr, tlsCert, tlsKey, srv)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user