From 1d05e4e4f8175a6c7eebda319ef619d651798f9d Mon Sep 17 00:00:00 2001 From: jesus Date: Fri, 15 Aug 2025 11:51:35 +0400 Subject: [PATCH] refactor: change var name. --- infra/conf/vless.go | 4 ++-- proxy/vless/vless.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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" )