vless flow only in tls-tcp
This commit is contained in:
@@ -221,7 +221,7 @@ const buildInboundsUsers = (inboundTags:string[]) => {
|
|||||||
// Remove flow in non tls VLESS
|
// Remove flow in non tls VLESS
|
||||||
if (newInbound.type == InTypes.VLESS) {
|
if (newInbound.type == InTypes.VLESS) {
|
||||||
const vlessInbound = <VLESS>newInbound
|
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])
|
users.push(clientConfig[newInbound.type])
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ const buildInboundsUsers = (inbound:InboundWithUser):Inbound => {
|
|||||||
// Remove flow in non tls VLESS
|
// Remove flow in non tls VLESS
|
||||||
if (inbound.type == InTypes.VLESS) {
|
if (inbound.type == InTypes.VLESS) {
|
||||||
const vlessInbound = <VLESS>inbound
|
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])
|
users.push(clientConfig[inbound.type])
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user