mirror of
				https://github.com/bjdgyc/anylink.git
				synced 2025-10-31 08:29:33 +08:00 
			
		
		
		
	更改dtlssession的存储方式
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user