From 7a5721c50d43d06d0c02f5bbd9715f8f2fd39eb8 Mon Sep 17 00:00:00 2001 From: Fangliding Date: Tue, 8 Sep 2026 23:47:02 +0800 Subject: [PATCH] Write encryption back to json struct to for validateOutboundTransportSecurity --- infra/conf/vless.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/conf/vless.go b/infra/conf/vless.go index 1c8ababfd..8c72c730c 100644 --- a/infra/conf/vless.go +++ b/infra/conf/vless.go @@ -312,6 +312,8 @@ func (c *VLessOutboundConfig) Build() (proto.Message, error) { if err := json.Unmarshal(rawUser, account); err != nil { return nil, errors.New(`VLESS users: invalid user`).Base(err) } + // validateOutboundTransportSecurity needs to see this + c.Encryption = account.Encryption if account.Reverse != nil { // may not be reached: error json unmarshal return nil, errors.New(`VLESS users: please use simplified outbound's config style to use "reverse"`) }