trojan: support listen as trojan server

This commit is contained in:
nadoo committed 2020-10-10 19:04:33 +08:00
1 parent 6eda2b79c8
commit 175ef16a5c
17 files changed
+357 -115

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ func (c *LruCache) Set(k string, v []byte, ttl int) {
c.putToHead(k, v, exp)
// NOTE: the cache size will always be c.size + 2,
// NOTE: the cache size will always >= 2,
// but it doesn't matter in our environment.
if len(c.cache) > c.size {
c.removeTail()