From 1432676c4d0c00c4ad8b26a5c79dc1d8f2a6a22c Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 9 Oct 2024 11:47:46 +0200 Subject: [PATCH] DNS Outbound - nonIPQuery, blockTypes --- web/assets/js/model/outbound.js | 14 ++++++++++++-- web/html/xui/form/outbound.html | 32 ++++++++++++++++++-------------- 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 596ff6c6..eb31ad87 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -891,18 +891,28 @@ 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={}){ + static fromJson(json = {}) { return new Outbound.DNSSettings( 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 0bca0ff6..339d2497 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -81,24 +81,28 @@