Compare commits

..

4 commits

Author SHA1 Message Date
mhsanaei
51220917c4
outbound Traffic - default false
if you need it you need to change it manually to true
2025-01-26 11:22:42 +01:00
mhsanaei
b34956647b
minor change 2025-01-26 11:07:45 +01:00
mhsanaei
5c4e2dfd39
default setting - scStreamUpServerSecs 2025-01-26 11:07:35 +01:00
Ivan Zorin
dd4c2adb37
Fix non-MultiUser dbInbounds (#2649) 2025-01-26 11:03:06 +01:00
4 changed files with 15 additions and 11 deletions

View file

@ -493,7 +493,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
headers = [], headers = [],
scMaxBufferedPosts = 30, scMaxBufferedPosts = 30,
scMaxEachPostBytes = "1000000", scMaxEachPostBytes = "1000000",
scStreamUpServerSecs = "0", scStreamUpServerSecs = "20-80",
noSSEHeader = false, noSSEHeader = false,
xPaddingBytes = "100-1000", xPaddingBytes = "100-1000",
mode = MODE_OPTION.AUTO, mode = MODE_OPTION.AUTO,

View file

@ -120,9 +120,11 @@
this.group.isGroup = true; this.group.isGroup = true;
dbInbounds.forEach((dbInboundItem) => { dbInbounds.forEach((dbInboundItem) => {
this.showProcess(dbInboundItem); this.showProcess(dbInboundItem);
this.addClient(this.inbound.protocol, this.clients); if (this.dbInbound.isMultiUser()) {
this.group.inbounds.push(dbInboundItem.id) this.addClient(this.inbound.protocol, this.clients);
this.group.clients.push(this.clients[this.index]) this.group.inbounds.push(dbInboundItem.id)
this.group.clients.push(this.clients[this.index])
}
}) })
this.group.currentClient = this.clients[this.index] this.group.currentClient = this.clients[this.index]
} }
@ -140,9 +142,11 @@
showProcess(dbInbound, index = null) { showProcess(dbInbound, index = null) {
this.dbInbound = new DBInbound(dbInbound); this.dbInbound = new DBInbound(dbInbound);
this.inbound = dbInbound.toInbound(); this.inbound = dbInbound.toInbound();
this.clients = this.inbound.clients; if (this.dbInbound.isMultiUser()) {
this.index = index === null ? this.clients.length : index; this.clients = this.inbound.clients;
this.delayedStart = false; this.index = index === null ? this.clients.length : index;
this.delayedStart = false;
}
}, },
singleEditClientProcess(index) { singleEditClientProcess(index) {
if (this.clients[index].expiryTime < 0) { if (this.clients[index].expiryTime < 0) {

View file

@ -1455,7 +1455,7 @@
if (clients != null){ if (clients != null){
clients.forEach(c => { clients.forEach(c => {
if (c.subId && c.subId.length>0){ if (c.subId && c.subId.length>0){
subLinks.push(this.subSettings.subURI + c.subId + "?name=" + c.subId) subLinks.push(this.subSettings.subURI + c.subId)
} }
}) })
} }
@ -1482,7 +1482,7 @@
if (clients != null){ if (clients != null){
clients.forEach(c => { clients.forEach(c => {
if (c.subId && c.subId.length>0){ if (c.subId && c.subId.length>0){
subLinks.push(this.subSettings.subURI + c.subId + "?name=" + c.subId) subLinks.push(this.subSettings.subURI + c.subId)
} }
}) })
} }

View file

@ -51,8 +51,8 @@
"system": { "system": {
"statsInboundDownlink": true, "statsInboundDownlink": true,
"statsInboundUplink": true, "statsInboundUplink": true,
"statsOutboundDownlink": true, "statsOutboundDownlink": false,
"statsOutboundUplink": true "statsOutboundUplink": false
} }
}, },
"routing": { "routing": {