router: lowercase target domain passed to Lua hook

This commit is contained in:
Meo597
2026-10-01 22:05:09 +08:00
parent 5d1d8200d9
commit 5afe260f10
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ func TestRouterScriptModules(t *testing.T) {
calls := 0
d := &luaRouteDNSClient{lookup: func(domain string, option featureDNS.IPOption) ([]net.IP, uint32, error) {
calls++
if domain != "MiXeD.Example." || !option.IPv4Enable || option.IPv6Enable || !option.FakeEnable {
if domain != "mixed.example." || !option.IPv4Enable || option.IPv6Enable || !option.FakeEnable {
t.Fatalf("dns.Query arguments = %q, %+v", domain, option)
}
return ips, 17, nil