mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-07 06:07:36 +03:00
copy the ServerName from the tls.Config to the mint.Config
This commit is contained in:
parent
f33243fb41
commit
5283cc5ff4
2 changed files with 8 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue