mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-10-01 21:45:44 +00:00
geodata: rename Lua matcher constructors to BuildDomainMatcher and BuildIPMatcher
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ func TestLuaDNSServerQuery(t *testing.T) {
|
||||
server.RegisterLua(L)
|
||||
if err := L.DoString(`
|
||||
local server = require("xray.dns").Servers[1]
|
||||
local matcher = require("xray.geodata").IPMatcher("127.0.0.0/8")
|
||||
local matcher = require("xray.geodata").BuildIPMatcher("127.0.0.0/8")
|
||||
function HandleDNSQuery(domain, ipv4, ipv6, fake)
|
||||
local ips, ttl, err = server:Query(domain, ipv4, ipv6, fake)
|
||||
assert(type(ips) == "userdata" and not err)
|
||||
|
||||
Reference in New Issue
Block a user