Skip to content

Commit

Permalink
fix tls over kcp
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Dec 20, 2016
1 parent 0f0f01d commit bccf11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/internet/kcp/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit bccf11c

Please sign in to comment.