|
|
@@ -42,8 +42,6 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
|
|
|
config := new(inbound.Config)
|
|
|
config.Clients = make([]*protocol.User, len(c.Clients))
|
|
|
switch c.Flow {
|
|
|
- case vless.None:
|
|
|
- c.Flow = ""
|
|
|
case "", vless.XRV:
|
|
|
default:
|
|
|
return nil, errors.New(`VLESS "settings.flow" doesn't support "` + c.Flow + `" in this version`)
|
|
|
@@ -67,12 +65,13 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
|
|
|
switch account.Flow {
|
|
|
case "":
|
|
|
account.Flow = c.Flow
|
|
|
- case vless.None:
|
|
|
- account.Flow = ""
|
|
|
case vless.XRV:
|
|
|
default:
|
|
|
return nil, errors.New(`VLESS clients: "flow" doesn't support "` + account.Flow + `" in this version`)
|
|
|
}
|
|
|
+ if account.Flow == "" {
|
|
|
+ errors.PrintDeprecatedFeatureWarning("VLESS without flow", "VLESS with flow")
|
|
|
+ }
|
|
|
|
|
|
if len(account.Testseed) < 4 {
|
|
|
account.Testseed = c.Testseed
|
|
|
@@ -280,7 +279,9 @@ func (c *VLessOutboundConfig) Build() (proto.Message, error) {
|
|
|
account.Id = u.String()
|
|
|
|
|
|
switch account.Flow {
|
|
|
- case "", vless.XRV, vless.XRV + "-udp443":
|
|
|
+ case "":
|
|
|
+ errors.PrintDeprecatedFeatureWarning("VLESS without flow", "VLESS with flow")
|
|
|
+ case vless.XRV, vless.XRV + "-udp443":
|
|
|
default:
|
|
|
return nil, errors.New(`VLESS users: "flow" doesn't support "` + account.Flow + `" in this version`)
|
|
|
}
|