VLESS outbound: Add pre-connect (early test, for Vision Seed)

https://t.me/projectXtls/1034
This commit is contained in:
RPRX
2025-11-02 02:44:44 +00:00
parent cb4f943f50
commit 2dc9729864
5 changed files with 70 additions and 16 deletions
+2
View File
@@ -212,6 +212,7 @@ type VLessOutboundConfig struct {
Seed string `json:"seed"`
Encryption string `json:"encryption"`
Reverse *vless.Reverse `json:"reverse"`
Testpre uint32 `json:"testpre"`
Vnext []*VLessOutboundVnext `json:"vnext"`
}
@@ -258,6 +259,7 @@ func (c *VLessOutboundConfig) Build() (proto.Message, error) {
//account.Seed = c.Seed
account.Encryption = c.Encryption
account.Reverse = c.Reverse
account.Testpre = c.Testpre
} else {
if err := json.Unmarshal(rawUser, account); err != nil {
return nil, errors.New(`VLESS users: invalid user`).Base(err)