1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00

fix tls over kcp

This commit is contained in:
Darien Raymond 2016-12-20 13:03:20 +01:00
parent 0f0f01ddf6
commit bccf11c12c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -163,7 +163,7 @@ func DialKCP(src v2net.Address, dest v2net.Destination, options internet.DialerO
if dest.Address.Family().IsDomain() { if dest.Address.Family().IsDomain() {
config.ServerName = dest.Address.Domain() config.ServerName = dest.Address.Domain()
} }
tlsConn := tls.Client(conn, config) tlsConn := tls.Client(iConn, config)
iConn = v2tls.NewConnection(tlsConn) iConn = v2tls.NewConnection(tlsConn)
} }
} }