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