mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-08-07 01:41:48 +00:00
Implement client side ACL for SOCKS5 TCP
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package acl
|
||||
|
||||
import (
|
||||
lru "github.com/hashicorp/golang-lru"
|
||||
"net"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestEngine_Lookup(t *testing.T) {
|
||||
cache, _ := lru.NewARC(4)
|
||||
e := &Engine{
|
||||
DefaultAction: ActionDirect,
|
||||
Entries: []Entry{
|
||||
@@ -45,6 +47,7 @@ func TestEngine_Lookup(t *testing.T) {
|
||||
ActionArg: "",
|
||||
},
|
||||
},
|
||||
Cache: cache,
|
||||
}
|
||||
type args struct {
|
||||
domain string
|
||||
|
Reference in New Issue
Block a user