mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-08-22 17:46:48 +08:00
@@ -56,15 +56,15 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
|
|||||||
account.Id = u.String()
|
account.Id = u.String()
|
||||||
|
|
||||||
switch account.Flow {
|
switch account.Flow {
|
||||||
case "":
|
case "", vless.XRV:
|
||||||
case vless.XRV:
|
|
||||||
if c.Decryption != "none" {
|
|
||||||
return nil, errors.New(`VLESS clients: "decryption" doesn't support "flow" yet`)
|
|
||||||
}
|
|
||||||
default:
|
default:
|
||||||
return nil, errors.New(`VLESS clients: "flow" doesn't support "` + account.Flow + `" in this version`)
|
return nil, errors.New(`VLESS clients: "flow" doesn't support "` + account.Flow + `" in this version`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if c.Decryption != "none" && account.Flow == vless.XRV {
|
||||||
|
return nil, errors.New(`VLESS clients: "decryption" doesn't support "flow" yet`)
|
||||||
|
}
|
||||||
|
|
||||||
if account.Encryption != "" {
|
if account.Encryption != "" {
|
||||||
return nil, errors.New(`VLESS clients: "encryption" should not in inbound settings`)
|
return nil, errors.New(`VLESS clients: "encryption" should not in inbound settings`)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user