move adding of stateless reset tokens to the transport parameter struct

This commit is contained in:
Marten Seemann
2018-08-19 11:11:50 +07:00
parent ad9618ef9e
commit 2c75b795ae
4 changed files with 13 additions and 12 deletions

View File

@@ -51,6 +51,8 @@ func newServerTLS(
MaxBidiStreams: uint16(config.MaxIncomingStreams),
MaxUniStreams: uint16(config.MaxIncomingUniStreams),
DisableMigration: true,
// TODO(#855): generate a real token
StatelessResetToken: bytes.Repeat([]byte{42}, 16),
}
mconf, err := tlsToMintConfig(tlsConf, protocol.PerspectiveServer)
if err != nil {