mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 12:24:30 +08:00
修改为sql数据库
This commit is contained in:
@@ -55,7 +55,7 @@ type ConnSession struct {
|
||||
}
|
||||
|
||||
type DtlsSession struct {
|
||||
isActive int32
|
||||
isActive int32
|
||||
CloseChan chan struct{}
|
||||
closeOnce sync.Once
|
||||
IpAddr net.IP
|
||||
@@ -183,9 +183,9 @@ func (s *Session) NewConn() *ConnSession {
|
||||
IpAddr: ip,
|
||||
closeOnce: sync.Once{},
|
||||
CloseChan: make(chan struct{}),
|
||||
PayloadIn: make(chan *Payload),
|
||||
PayloadOutCstp: make(chan *Payload),
|
||||
PayloadOutDtls: make(chan *Payload),
|
||||
PayloadIn: make(chan *Payload, 64),
|
||||
PayloadOutCstp: make(chan *Payload, 64),
|
||||
PayloadOutDtls: make(chan *Payload, 64),
|
||||
dSess: &atomic.Value{},
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ func (cs *ConnSession) NewDtlsConn() *DtlsSession {
|
||||
}
|
||||
|
||||
dSess := &DtlsSession{
|
||||
isActive: 1,
|
||||
isActive: 1,
|
||||
CloseChan: make(chan struct{}),
|
||||
closeOnce: sync.Once{},
|
||||
IpAddr: cs.IpAddr,
|
||||
|
Reference in New Issue
Block a user