geodata: rename Lua matcher constructors to BuildDomainMatcher and BuildIPMatcher

This commit is contained in:
Meo597
2026-09-28 22:52:45 +08:00
parent 5724db08f4
commit 1c52c65872
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func TestDNSScriptGeoIPFallback(t *testing.T) {
t.Setenv("xray.location.asset", filepath.Join("..", "..", "resources"))
script := `
local servers = require("xray.dns").Servers
local us_ips = require("xray.geodata").IPMatcher("geoip:us")
local us_ips = require("xray.geodata").BuildIPMatcher("geoip:us")
local by_id = {}
for _, server in ipairs(servers) do