Merge pull request #420 from sudospaes/bug-fix-1

Fix bug: flow remains on transmission update
This commit is contained in:
Alireza Ahmadi
2023-07-16 17:07:36 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -99,6 +99,11 @@
if (!inModal.inbound.canEnableReality()) {
this.inModal.inbound.reality = false;
}
if (this.inModal.inbound.protocol == Protocols.VLESS && !inModal.inbound.canEnableTlsFlow()) {
this.inModal.inbound.settings.vlesses.forEach(client => {
client.flow = "";
});
}
},
SSMethodChange() {
if (this.inModal.inbound.isSSMultiUser) {

View File

@@ -624,7 +624,7 @@
port: RandomUtil.randomIntRange(10000, 60000),
protocol: baseInbound.protocol,
settings: Inbound.Settings.getSettings(baseInbound.protocol).toString(),
streamSettings: baseInbound.stream.toString(),
streamSettings: baseInbound.stream.toString(),
sniffing: baseInbound.canSniffing() ? baseInbound.sniffing.toString() : '{}',
};
await this.submit('/xui/inbound/add', data, inModal);
@@ -997,4 +997,4 @@
{{template "clientsModal"}}
{{template "clientsBulkModal"}}
</body>
</html>
</html>