mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 01:05:35 -05:00
Use 'h2' for ALPN in TCP
This commit is contained in:
@@ -26,7 +26,7 @@ func Dial(ctx context.Context, dest net.Destination) (internet.Connection, error
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if config := tls.ConfigFromContext(ctx, tls.WithDestination(dest)); config != nil {
|
||||
if config := tls.ConfigFromContext(ctx, tls.WithDestination(dest), tls.WithNextProto("h2")); config != nil {
|
||||
conn = tls.Client(conn, config.GetTLSConfig())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user