forked from quic-go/quic-go
copy the ServerName from the tls.Config to the mint.Config
This commit is contained in:
@@ -77,6 +77,7 @@ func tlsToMintConfig(tlsConf *tls.Config, pers protocol.Perspective) (*mint.Conf
|
||||
},
|
||||
}
|
||||
if tlsConf != nil {
|
||||
mconf.ServerName = tlsConf.ServerName
|
||||
mconf.Certificates = make([]*mint.Certificate, len(tlsConf.Certificates))
|
||||
for i, certChain := range tlsConf.Certificates {
|
||||
mconf.Certificates[i] = &mint.Certificate{
|
||||
|
||||
Reference in New Issue
Block a user