fix: default PreSharedKeyExtension bug (#248) (#251)

This commit is contained in:
VeNoMouS 2023-10-10 15:30:35 +13:00 committed by GitHub
parent 75eb8e9e80
commit 428ca2ca29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,8 +54,8 @@ type sessionController struct {
func newSessionController(uconn *UConn) *sessionController {
return &sessionController{
uconnRef: uconn,
sessionTicketExt: &SessionTicketExtension{},
pskExtension: &UtlsPreSharedKeyExtension{},
sessionTicketExt: nil,
pskExtension: nil,
state: NoSession,
locked: false,
callingLoadSession: false,