Allow http1 in v2ray HTTP transport

This commit is contained in:
世界 committed 2022-08-22 23:02:25 +08:00
1 parent 4005452772
commit a24a2b475a
4 files changed
+130 -27

No files matched your search

-3
View File
@@ -44,9 +44,6 @@ func NewClientTransport(ctx context.Context, dialer N.Dialer, serverAddr M.Socks
}
switch options.Type {
case C.V2RayTransportTypeHTTP:
if tlsConfig == nil {
return nil, C.ErrTLSRequired
}
return v2rayhttp.NewClient(ctx, dialer, serverAddr, options.HTTPOptions, tlsConfig), nil
case C.V2RayTransportTypeGRPC:
if tlsConfig == nil {