chore: bump version to 2.8.6 and add watcher for security changes in inbound modal

This commit is contained in:
lolka1333 2025-12-13 13:30:49 +01:00
parent 8ed2119004
commit d56139acd3
2 changed files with 11 additions and 1 deletions

View file

@ -1 +1 @@
2.8.5 2.8.6

View file

@ -87,6 +87,16 @@
} }
} }
}, },
watch: {
'inModal.inbound.stream.security'(newVal, oldVal) {
// Clear flow when security changes from reality/tls to none
if (inModal.inbound.protocol == Protocols.VLESS && !inModal.inbound.canEnableTlsFlow()) {
inModal.inbound.settings.vlesses.forEach(client => {
client.flow = "";
});
}
}
},
methods: { methods: {
streamNetworkChange() { streamNetworkChange() {
if (!inModal.inbound.canEnableTls()) { if (!inModal.inbound.canEnableTls()) {