Skip to content

Commit

Permalink
fix mistake - xtls
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Jan 10, 2024
1 parent 97e6420 commit b056c2d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web/assets/js/model/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,18 @@ class Inbound extends XrayCommonClass {
}
}

get xtls() {
return this.stream.security === 'xtls';
}

set xtls(isXtls) {
if (isXtls) {
this.stream.security = 'xtls';
} else {
this.stream.security = 'none';
}
}

get network() {
return this.stream.network;
}
Expand Down

0 comments on commit b056c2d

Please sign in to comment.