From d32ab9ce744e044373aa39a6a895733e846eb6b3 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Thu, 9 Jun 2022 13:52:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=84=E5=88=99=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=AD=96=E7=95=A5=E7=BB=84=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/clash_test.go | 3 +-- tunnel/tunnel.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/clash_test.go b/test/clash_test.go index a88c6dc7..9712e817 100644 --- a/test/clash_test.go +++ b/test/clash_test.go @@ -676,8 +676,7 @@ func benchmarkProxy(b *testing.B, proxy C.ProxyAdapter) { } } -// TODO: fix test -func _TestClash_Basic(t *testing.T) { +func TestClash_Basic(t *testing.T) { basic := ` mixed-port: 10000 log-level: silent diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index 1b7e7514..936b2b48 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -433,5 +433,5 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) { } } - return proxies["REJECT"], nil, nil + return proxies["DIRECT"], nil, nil }