From 52216d0204d74681b49fafc3ce53f55911b9643a Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 9 May 2017 13:39:09 +0200 Subject: [PATCH] test case for domain matcher --- app/router/condition_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/router/condition_test.go b/app/router/condition_test.go index c60996d56..2c9a7146c 100644 --- a/app/router/condition_test.go +++ b/app/router/condition_test.go @@ -38,6 +38,11 @@ func TestSubDomainMatcher(t *testing.T) { input: proxy.ContextWithTarget(context.Background(), net.TCPDestination(net.DomainAddress("2ray.com"), 80)), output: false, }, + { + pattern: "v2ray.com", + input: proxy.ContextWithTarget(context.Background(), net.TCPDestination(net.DomainAddress("xv2ray.com"), 80)), + output: false, + }, } for _, test := range cases { matcher := NewSubDomainMatcher(test.pattern)