fix tls over kcp

pull/467/head v2.11.1
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
1 changed files with 1 additions and 1 deletions

View File

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