|
@@ -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,
|
|
|
);
|
|
|
}
|
|
|
};
|