1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-17 04:55:23 +00:00

test case for domain matcher

This commit is contained in:
Darien Raymond 2017-05-09 13:39:09 +02:00
parent 5829b45bbe
commit 52216d0204
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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)