mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-08-28 04:54:51 +00:00
revert
This commit is contained in:
parent
24e77cfcbf
commit
907f2844c4
1 changed files with 0 additions and 10 deletions
|
|
@ -97,16 +97,6 @@ func TestIPMatcher(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestGeoIPPrivateUsesBuiltinMatcher(t *testing.T) {
|
||||
matcher := buildIPMatcher("geoip:private")
|
||||
if !matcher.Match(xnet.ParseAddress("100.64.0.1").IP()) {
|
||||
t.Fatal("expected geoip:private to match without loading geoip.dat")
|
||||
}
|
||||
if matcher.Match(xnet.ParseAddress("8.8.8.8").IP()) {
|
||||
t.Fatal("expected geoip:private not to match public IP")
|
||||
}
|
||||
}
|
||||
|
||||
func TestIPMatcherFullCIDR4(t *testing.T) {
|
||||
matcher := buildIPMatcher(
|
||||
"0.0.0.0/0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue