1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00

more test case

This commit is contained in:
v2ray 2015-12-12 17:17:23 +01:00
parent b87cc5baf1
commit 164465e60d

View File

@ -119,4 +119,7 @@ func TestDomainNotMatchingDomain(t *testing.T) {
rule := parseRule([]byte(rawJson))
dest := v2net.NewTCPDestination(v2net.DomainAddress("baidu.com", 80))
assert.Bool(rule.Apply(dest)).IsFalse()
dest = v2net.NewTCPDestination(v2net.DomainAddress("www.google.com", 80))
assert.Bool(rule.Apply(dest)).IsTrue()
}