forked from solderpunk/molly-brown
Prefer server cipher suites
This commit is contained in:
parent
92cd40db12
commit
53644b96e0
8
main.go
8
main.go
|
@ -56,10 +56,12 @@ func main() {
|
|||
errorLog.Println("Error loading TLS keypair: " + err.Error())
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
tlscfg := &tls.Config{
|
||||
Certificates: []tls.Certificate{cert},
|
||||
MinVersion: tls.VersionTLS12,
|
||||
ClientAuth: tls.RequestClientCert,
|
||||
Certificates: []tls.Certificate{cert},
|
||||
MinVersion: tls.VersionTLS12,
|
||||
ClientAuth: tls.RequestClientCert,
|
||||
PreferServerCipherSuites: true,
|
||||
}
|
||||
|
||||
// Create TLS listener
|
||||
|
|
Loading…
Reference in New Issue