Compare commits

..

8 Commits

Author SHA1 Message Date
MHSanaei
c5bbee354f Merge pull request #34 from MHSanaei/dev
i hate myself
2023-03-19 14:39:51 +03:30
MHSanaei
fe7ce3f74b Update xray.js 2023-03-19 14:39:19 +03:30
MHSanaei
63acd585ba Merge pull request #33 from MHSanaei/xray.js
Update xray.js
2023-03-19 14:15:05 +03:30
MHSanaei
9a1cf70451 Update xray.js 2023-03-19 14:13:19 +03:30
MHSanaei
1777f257a8 Update version 2023-03-19 14:00:52 +03:30
MHSanaei
b4997da51c Update install.sh 2023-03-19 12:44:46 +03:30
MHSanaei
4f9aff3043 Merge pull request #31 from MHSanaei/dev
xtls bug fixed
2023-03-19 12:41:25 +03:30
MHSanaei
e68317c6bd xtls bug fixed 2023-03-19 12:39:14 +03:30
3 changed files with 16 additions and 20 deletions

View File

@@ -1 +1 @@
1.1.0
1.1.1

View File

@@ -98,8 +98,8 @@ config_after_install() {
/usr/local/x-ui/x-ui setting -username ${usernameTemp} -password ${passwordTemp}
echo -e "this is a fresh installation,will generate random login info for security concerns:"
echo -e "###############################################"
echo -e "${green}user name:${usernameTemp}${plain}"
echo -e "${green}user password:${passwordTemp}${plain}"
echo -e "${green}username:${usernameTemp}${plain}"
echo -e "${green}password:${passwordTemp}${plain}"
echo -e "###############################################"
echo -e "${red}if you forgot your login info,you can type x-ui and then type 7 to check after installation${plain}"
else

View File

@@ -1156,14 +1156,12 @@ class Inbound extends XrayCommonClass {
}
}
if (this.xtls) {
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
address = this.stream.tls.server;
if (type === "tcp") {
params.set("flow", this.settings.vlesses[clientIndex].flow);
}
if (this.XTLS) {
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
address = this.stream.tls.server;
}
params.set("flow", this.settings.vlesses[clientIndex].flow);
}
}
const link = `vless://${uuid}@${address}:${port}`;
const url = new URL(link);
@@ -1245,20 +1243,18 @@ class Inbound extends XrayCommonClass {
params.set("alpn", this.stream.tls.alpn[0]);
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
address = this.stream.tls.server;
}
if (this.stream.tls.settings[0]['serverName'] !== ''){
params.set("sni", this.stream.tls.settings[0]['serverName']);
}
if (this.stream.tls.settings[0]['serverName'] !== ''){
params.set("sni", this.stream.tls.settings[0]['serverName']);
}
}
if (this.xtls) {
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
address = this.stream.tls.server;
if (type === "tcp" && this.settings.trojans[clientIndex].flow.length > 0) {
params.set("flow", this.settings.trojans[clientIndex].flow);
}
if (this.XTLS) {
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
address = this.stream.tls.server;
}
params.set("flow", this.settings.trojans[clientIndex].flow);
}
}
const link = `trojan://${settings.trojans[clientIndex].password}@${address}:${this.port}#${encodeURIComponent(remark)}`;
const url = new URL(link);