mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
more test case
This commit is contained in:
parent
b87cc5baf1
commit
164465e60d
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user