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
@@ -75,7 +75,7 @@ function HandleRoute(ctx, inboundTag, sourcePort, targetPort, localPort,
targetDomain, network, protocol, user, vlessRoute, skipDNSResolve, ...)
assert(select("#", ...) == 0)
assert(inboundTag == "in" and sourcePort == 1234 and targetPort == 443 and localPort == 5678)
assert(targetDomain == "MiXeD.Example." and network == router.NetworkTCP)
assert(targetDomain == "mixed.example." and network == router.NetworkTCP)
assert(protocol == "tls" and user == "user@example.com" and vlessRoute == 4321 and skipDNSResolve)
assert(ctx.GetNetwork == nil and ctx.Context == nil)
savedContext = ctx