Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-09-16 11:30:51 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-09-16 11:30:51 +0300
commit176ab5f48e883ab65c124913acb949fe7f172429 (patch)
treec45be35bdbe4434af680c8aa64ff804bc7ae831b /web/assets
parent9c4fa239312c3750e6c8d4409055acf1c500199c (diff)
New - DNS Outbound (nonIPQuery, blockTypes)
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/outbound.js12
1 files changed, 11 insertions, 1 deletions
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,
);
}
};