mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-03-21 10:05:49 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5bbee354f | ||
|
|
fe7ce3f74b | ||
|
|
63acd585ba | ||
|
|
9a1cf70451 | ||
|
|
1777f257a8 | ||
|
|
b4997da51c | ||
|
|
4f9aff3043 | ||
|
|
e68317c6bd |
@@ -1 +1 @@
|
|||||||
1.1.0
|
1.1.1
|
||||||
|
|||||||
@@ -98,8 +98,8 @@ config_after_install() {
|
|||||||
/usr/local/x-ui/x-ui setting -username ${usernameTemp} -password ${passwordTemp}
|
/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 "this is a fresh installation,will generate random login info for security concerns:"
|
||||||
echo -e "###############################################"
|
echo -e "###############################################"
|
||||||
echo -e "${green}user name:${usernameTemp}${plain}"
|
echo -e "${green}username:${usernameTemp}${plain}"
|
||||||
echo -e "${green}user password:${passwordTemp}${plain}"
|
echo -e "${green}password:${passwordTemp}${plain}"
|
||||||
echo -e "###############################################"
|
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}"
|
echo -e "${red}if you forgot your login info,you can type x-ui and then type 7 to check after installation${plain}"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1156,14 +1156,12 @@ class Inbound extends XrayCommonClass {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.xtls) {
|
if (this.XTLS) {
|
||||||
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
|
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
|
||||||
address = this.stream.tls.server;
|
address = this.stream.tls.server;
|
||||||
if (type === "tcp") {
|
}
|
||||||
params.set("flow", this.settings.vlesses[clientIndex].flow);
|
params.set("flow", this.settings.vlesses[clientIndex].flow);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const link = `vless://${uuid}@${address}:${port}`;
|
const link = `vless://${uuid}@${address}:${port}`;
|
||||||
const url = new URL(link);
|
const url = new URL(link);
|
||||||
@@ -1245,20 +1243,18 @@ class Inbound extends XrayCommonClass {
|
|||||||
params.set("alpn", this.stream.tls.alpn[0]);
|
params.set("alpn", this.stream.tls.alpn[0]);
|
||||||
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
|
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
|
||||||
address = 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 (this.XTLS) {
|
||||||
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
|
if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
|
||||||
address = 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);
|
params.set("flow", this.settings.trojans[clientIndex].flow);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const link = `trojan://${settings.trojans[clientIndex].password}@${address}:${this.port}#${encodeURIComponent(remark)}`;
|
const link = `trojan://${settings.trojans[clientIndex].password}@${address}:${this.port}#${encodeURIComponent(remark)}`;
|
||||||
const url = new URL(link);
|
const url = new URL(link);
|
||||||
|
|||||||
Reference in New Issue
Block a user