Merge branch 'dev' into user_act_log

This commit is contained in:
lanrenwo
2022-11-04 16:56:52 +08:00
committed by GitHub
15 changed files with 217 additions and 36 deletions

View File

@@ -66,9 +66,13 @@ func startDtls() {
go func() {
// time.Sleep(1 * time.Second)
cc := conn.(*dtls.Conn)
sessid := hex.EncodeToString(cc.ConnectionState().SessionID)
sess := sessdata.Dtls2Sess(sessid)
LinkDtls(conn, sess.CSess)
did := hex.EncodeToString(cc.ConnectionState().SessionID)
cSess := sessdata.Dtls2CSess(did)
if cSess == nil {
conn.Close()
return
}
LinkDtls(conn, cSess)
}()
}
}