feat(outbound): sync DNS outbound config with Xray core changes

Rename the DNS rule wire key qtype to qType (reading the legacy qtype on parse for back-compat), add the new rCode response-code field for the return action (omitted when zero), and rename the reject action to return. Align the DNS rule action set across the form dropdown, schema, and adapter to the core's valid values (direct/drop/return/hijack), dropping the never-valid rejectIPv4/rejectIPv6 entries.
This commit is contained in:
MHSanaei
2026-06-01 10:24:35 +02:00
parent 32f96298f8
commit 2bb9ed1cda
6 changed files with 42 additions and 25 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export const Address_Port_Strategy = Object.freeze({
TXT_PORT_AND_ADDRESS: 'TxtPortAndAddress',
});
export const DNSRuleActions = Object.freeze(['direct', 'drop', 'reject', 'hijack'] as const);
export const DNSRuleActions = Object.freeze(['direct', 'drop', 'return', 'hijack'] as const);
export const TLS_VERSION_OPTION = Object.freeze({
TLS10: '1.0',