mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-03-05 21:15:49 -05:00
Fix Server Name not Supplied to Security Engine for TCP Transport
This commit is contained in:
@@ -188,7 +188,7 @@ func (h *Handler) Dial(ctx context.Context, dest net.Destination) (internet.Conn
|
||||
}
|
||||
|
||||
if securityEngine != nil {
|
||||
conn, err = securityEngine.Client(conn)
|
||||
conn, err = securityEngine.Client(conn, security.OptionWithDestination{Dest: dest})
|
||||
if err != nil {
|
||||
return nil, newError("unable to create security protocol client from security engine").Base(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user