Skip to content

Commit

Permalink
vless flow only in tls-tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Feb 28, 2024
1 parent 037dbbd commit 4a3917e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/Clients.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const buildInboundsUsers = (inboundTags:string[]) => {
// Remove flow in non tls VLESS
if (newInbound.type == InTypes.VLESS) {
const vlessInbound = <VLESS>newInbound
if (!vlessInbound.tls?.enabled) delete(clientConfig["vless"].flow)
if (!vlessInbound.tls?.enabled || vlessInbound.transport?.type) delete(clientConfig["vless"].flow)
}
users.push(clientConfig[newInbound.type])
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Inbounds.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const buildInboundsUsers = (inbound:InboundWithUser):Inbound => {
// Remove flow in non tls VLESS
if (inbound.type == InTypes.VLESS) {
const vlessInbound = <VLESS>inbound
if (!vlessInbound.tls?.enabled) delete(clientConfig["vless"].flow)
if (!vlessInbound.tls?.enabled || vlessInbound.transport?.type) delete(clientConfig["vless"].flow)
}
users.push(clientConfig[inbound.type])
})
Expand Down

0 comments on commit 4a3917e

Please sign in to comment.