chore: allow vision with vless encryption

This commit is contained in:
wwqgtxx
2025-08-17 16:14:20 +08:00
parent eb028b65fc
commit b481eca4a4
4 changed files with 34 additions and 6 deletions

View File

@@ -3,7 +3,6 @@ package outbound
import (
"context"
"crypto/tls"
"errors"
"fmt"
"net"
"net/http"
@@ -457,11 +456,6 @@ func NewVless(option VlessOption) (*Vless, error) {
if err != nil {
return nil, err
}
if v.encryption != nil {
if option.Flow != "" {
return nil, errors.New(`vless "encryption" doesn't support "flow" yet`)
}
}
v.realityConfig, err = v.option.RealityOpts.Parse()
if err != nil {