Skip to content

Commit

Permalink
new - fakedns
Browse files Browse the repository at this point in the history
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
  • Loading branch information
MHSanaei and alireza0 committed Jul 17, 2023
1 parent c2e9ee3 commit 6f09fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/assets/js/model/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const SNIFFING_OPTION = {
HTTP: "http",
TLS: "tls",
QUIC: "quic",
FAKEDNS: "fakedns"
};

Object.freeze(Protocols);
Expand Down Expand Up @@ -905,7 +906,7 @@ class StreamSettings extends XrayCommonClass {
}

class Sniffing extends XrayCommonClass {
constructor(enabled=true, destOverride=['http', 'tls', 'quic']) {
constructor(enabled=true, destOverride=['http', 'tls', 'quic', 'fakedns']) {
super();
this.enabled = enabled;
this.destOverride = destOverride;
Expand All @@ -915,7 +916,7 @@ class Sniffing extends XrayCommonClass {
let destOverride = ObjectUtil.clone(json.destOverride);
if (!ObjectUtil.isEmpty(destOverride) && !ObjectUtil.isArrEmpty(destOverride)) {
if (ObjectUtil.isEmpty(destOverride[0])) {
destOverride = ['http', 'tls', 'quic'];
destOverride = ['http', 'tls', 'quic', 'fakedns'];
}
}
return new Sniffing(
Expand Down

0 comments on commit 6f09fae

Please sign in to comment.