From 176ab5f48e883ab65c124913acb949fe7f172429 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Mon, 16 Sep 2024 10:30:51 +0200 Subject: [PATCH] New - DNS Outbound (nonIPQuery, blockTypes) --- web/assets/js/model/outbound.js | 12 +++++++++++- web/html/xui/form/outbound.html | 8 ++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 37dd9703..53497548 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -934,11 +934,19 @@ Outbound.BlackholeSettings = class extends CommonClass { } }; Outbound.DNSSettings = class extends CommonClass { - constructor(network = 'udp', address = '1.1.1.1', port = 53) { + constructor( + network = 'udp', + address = '1.1.1.1', + port = 53, + nonIPQuery = 'drop', + blockTypes = [] + ) { super(); this.network = network; this.address = address; this.port = port; + this.nonIPQuery = nonIPQuery; + this.blockTypes = blockTypes; } static fromJson(json = {}) { @@ -946,6 +954,8 @@ Outbound.DNSSettings = class extends CommonClass { json.network, json.address, json.port, + json.nonIPQuery, + json.blockTypes, ); } }; diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 081c6fd7..84882498 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -75,6 +75,14 @@ [[ s ]] + + + [[ s ]] + + + + +