fix mistake - xtls

This commit is contained in:
MHSanaei 2024-01-10 20:41:43 +03:30
parent 97e6420018
commit b056c2dda0

View file

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