diff --git a/infra/conf/vless.go b/infra/conf/vless.go index bfbcb07e..419cfb92 100644 --- a/infra/conf/vless.go +++ b/infra/conf/vless.go @@ -40,7 +40,7 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) { config := new(inbound.Config) config.Clients = make([]*protocol.User, len(c.Clients)) switch c.Flow { - case "", vless.XRV, vless.NO_FLOW: + case "", vless.XRV, vless.NoFLow: default: return nil, errors.New(`VLESS "settings.flow" doesn't support "` + c.Flow + `" in this version`) } @@ -63,7 +63,7 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) { switch account.Flow { case "": account.Flow = c.Flow - case vless.NO_FLOW: + case vless.NoFLow: account.Flow = "" case vless.XRV: default: diff --git a/proxy/vless/vless.go b/proxy/vless/vless.go index 9741a907..1db04366 100644 --- a/proxy/vless/vless.go +++ b/proxy/vless/vless.go @@ -6,6 +6,6 @@ package vless const ( - XRV = "xtls-rprx-vision" - NO_FLOW = "none" + XRV = "xtls-rprx-vision" + NoFLow = "none" )