diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-09-16 11:30:51 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-09-16 11:30:51 +0300 |
| commit | 176ab5f48e883ab65c124913acb949fe7f172429 (patch) | |
| tree | c45be35bdbe4434af680c8aa64ff804bc7ae831b /web/assets | |
| parent | 9c4fa239312c3750e6c8d4409055acf1c500199c (diff) | |
New - DNS Outbound (nonIPQuery, blockTypes)
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/js/model/outbound.js | 12 |
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, ); } }; |
