mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-19 03:25:01 +03:00
feat(xray): edit Lua DNS and routing scripts
xray-core 26.10.10 can hand DNS and routing to Lua: dns.script and routing.script name a .lua file (absolute, or found next to the Xray binary) that defines HandleDNSQuery / HandleRoute, and a DNS server's id is how a DNS script picks it. The keys round-tripped through the JSON template but had no field. - DNS: a Lua Script field, and an ID field in the server modal; - Basics: a Routing Script field beside the routing strategy; - Routing: a warning above the rules while a script is set, since the core then routes only through the script and skips every rule, the panel's api rule included. The descriptions say the script must still send the api inbound to the api outbound, and that Xray will not start if the file is missing. An empty field drops the key, because the core rejects an empty path.
This commit is contained in:
@@ -2275,7 +2275,11 @@
|
||||
"clearAll": "Remover Todos",
|
||||
"clearAllTitle": "Remover todos os servidores DNS?",
|
||||
"clearAllConfirm": "Isso remove todos os servidores DNS da lista. Não pode ser desfeito.",
|
||||
"dnsLeakWarning": "DNS pode vazar por localhost, UDP/TCP sem criptografia, DoH/DoQ em modo local, consultas de fallback ou EDNS client IP. Use DoH roteado, fixe resolvedores em hosts e desative fallback quando privacidade importar."
|
||||
"dnsLeakWarning": "DNS pode vazar por localhost, UDP/TCP sem criptografia, DoH/DoQ em modo local, consultas de fallback ou EDNS client IP. Use DoH roteado, fixe resolvedores em hosts e desative fallback quando privacidade importar.",
|
||||
"script": "Script Lua",
|
||||
"scriptDesc": "Caminho para um arquivo .lua que define HandleDNSQuery, absoluto ou relativo à pasta bin do Xray. O script passa a responder a todas as consultas e só alcança os servidores pelo próprio código. O Xray não inicia se o arquivo estiver ausente ou for inválido.",
|
||||
"serverId": "ID",
|
||||
"serverIdDesc": "Nome com que um script DNS em Lua escolhe este servidor"
|
||||
},
|
||||
"fakedns": {
|
||||
"add": "Adicionar Fake DNS",
|
||||
@@ -2283,7 +2287,10 @@
|
||||
"poolSize": "Tamanho do Pool"
|
||||
},
|
||||
"defaultOutbound": "Saída padrão",
|
||||
"defaultOutboundDesc": "Tráfego sem regra de roteamento usa esta saída (a primeira da lista)."
|
||||
"defaultOutboundDesc": "Tráfego sem regra de roteamento usa esta saída (a primeira da lista).",
|
||||
"routingScript": "Script de roteamento",
|
||||
"routingScriptDesc": "Caminho para um arquivo .lua que define HandleRoute, absoluto ou relativo à pasta bin do Xray. O script passa a escolher cada rota e o Xray ignora todas as regras de roteamento, inclusive a regra api do painel: envie o inbound api para o outbound api ou as estatísticas de tráfego e as alterações de clientes ao vivo param. O Xray não inicia se o arquivo estiver ausente ou for inválido.",
|
||||
"routingScriptActive": "Há um script de roteamento definido em {section}, então o Xray ignora estas regras."
|
||||
},
|
||||
"hosts": {
|
||||
"addHost": "Adicionar Host",
|
||||
|
||||
Reference in New Issue
Block a user