更改dtlssession的存储方式

This commit is contained in:
bjdgyc 2021-05-27 11:10:15 +08:00
parent 061f625448
commit 0863313eff
1 changed files with 0 additions and 2 deletions

View File

@ -56,7 +56,6 @@ type ConnSession struct {
type DtlsSession struct {
isActive int32
// CSess *ConnSession
CloseChan chan struct{}
closeOnce sync.Once
IpAddr net.IP
@ -238,7 +237,6 @@ func (cs *ConnSession) NewDtlsConn() *DtlsSession {
dSess := &DtlsSession{
isActive: 1,
// CSess: cs,
CloseChan: make(chan struct{}),
closeOnce: sync.Once{},
IpAddr: cs.IpAddr,