* app, dnsforward: add MinVersion for TLS configs

This commit is contained in:
Aleksey Dmitrevskiy
2019-04-17 12:02:56 +03:00
parent faeda3f075
commit c82887d3aa
3 changed files with 11 additions and 3 deletions

View File

@@ -175,7 +175,10 @@ func (s *Server) startInternal(config *ServerConfig) error {
if err != nil {
return errorx.Decorate(err, "Failed to parse TLS keypair")
}
proxyConfig.TLSConfig = &tls.Config{Certificates: []tls.Certificate{keypair}}
proxyConfig.TLSConfig = &tls.Config{
Certificates: []tls.Certificate{keypair},
MinVersion: tls.VersionTLS12,
}
}
if proxyConfig.UDPListenAddr == nil {