mirror of
https://github.com/masterking32/MasterHttpRelayVPN.git
synced 2026-05-18 23:54:37 +03:00
Send workers, Batch/AES encryption
This commit is contained in:
@@ -81,3 +81,14 @@ func (s *SOCKSConnectionStore) Delete(id uint64) {
|
||||
delete(s.items, id)
|
||||
s.mu.Unlock()
|
||||
}
|
||||
|
||||
func (s *SOCKSConnectionStore) Snapshot() []*SOCKSConnection {
|
||||
s.mu.RLock()
|
||||
defer s.mu.RUnlock()
|
||||
|
||||
items := make([]*SOCKSConnection, 0, len(s.items))
|
||||
for _, item := range s.items {
|
||||
items = append(items, item)
|
||||
}
|
||||
return items
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user