mirror of https://github.com/v2ray/v2ray-core
parent
b87cc5baf1
commit
164465e60d
|
@ -119,4 +119,7 @@ func TestDomainNotMatchingDomain(t *testing.T) {
|
||||||
rule := parseRule([]byte(rawJson))
|
rule := parseRule([]byte(rawJson))
|
||||||
dest := v2net.NewTCPDestination(v2net.DomainAddress("baidu.com", 80))
|
dest := v2net.NewTCPDestination(v2net.DomainAddress("baidu.com", 80))
|
||||||
assert.Bool(rule.Apply(dest)).IsFalse()
|
assert.Bool(rule.Apply(dest)).IsFalse()
|
||||||
|
|
||||||
|
dest = v2net.NewTCPDestination(v2net.DomainAddress("www.google.com", 80))
|
||||||
|
assert.Bool(rule.Apply(dest)).IsTrue()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue