Compare commits
1 Commits
b6422eb0c0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
057a0ab341 |
@@ -123,7 +123,7 @@ func (s *Server) ServeTCPTLS(addr, c, k string) error {
|
||||
return err
|
||||
}
|
||||
defer listen.Close()
|
||||
tlsListener := tls.NewListener(listen, &tls.Config{
|
||||
config := &tls.Config{
|
||||
Certificates: certificates,
|
||||
MinVersion: tls.VersionTLS12,
|
||||
CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
|
||||
@@ -134,7 +134,9 @@ func (s *Server) ServeTCPTLS(addr, c, k string) error {
|
||||
tls.TLS_RSA_WITH_AES_256_GCM_SHA384,
|
||||
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
|
||||
},
|
||||
})
|
||||
}
|
||||
config.BuildNameToCertificate()
|
||||
tlsListener := tls.NewListener(listen, config)
|
||||
return s.serveTCP(addr, tlsListener)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user