[SKIP CI]

Merge remote-tracking branch 'Pro-Plus/with-tun' into Alpha

# Conflicts:
#	README.md
#	hub/route/server.go
This commit is contained in:
MetaCubeX
2022-03-23 13:20:15 +08:00
13 changed files with 142 additions and 8 deletions

View File

@ -216,6 +216,15 @@ func (c *LruCache) deleteElement(le *list.Element) {
}
}
func (c *LruCache) Clear() error {
c.mu.Lock()
c.cache = make(map[any]*list.Element)
c.mu.Unlock()
return nil
}
type entry struct {
key any
value any