Write encryption back to json struct to for validateOutboundTransportSecurity

This commit is contained in:
Fangliding
2026-09-08 23:47:02 +08:00
parent 47cfe9994a
commit 7a5721c50d
+2
View File
@@ -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"`)
}