v2ray преди 10 години
родител
ревизия
164465e60d
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      app/router/rules/json/fieldrule_test.go

+ 3 - 0
app/router/rules/json/fieldrule_test.go

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