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 @@
-
-
- [[ s ]]
-
-
+
+
+ [[ s ]]
+
+
-
-
- [[ s ]]
-
-
+
+
+ [[ s ]]
+
+
+
+
+ [[ s ]]
+
+
+
+
+