Fix proxy connection for Cryville.Common.Network.
This commit is contained in:
@@ -10,13 +10,11 @@ using System.Text;
|
||||
|
||||
namespace Cryville.Common.Network {
|
||||
public class TlsTcpClient {
|
||||
readonly TcpClient _tcpClient;
|
||||
readonly TlsClientProtocol _protocol;
|
||||
readonly TlsClient _tlsClient;
|
||||
public Stream Stream { get; private set; }
|
||||
public TlsTcpClient(string hostname, int port) {
|
||||
_tcpClient = new TcpClient(hostname, port);
|
||||
_protocol = new TlsClientProtocol(_tcpClient.GetStream());
|
||||
public TlsTcpClient(TcpClient tcpClient, string hostname) {
|
||||
_protocol = new TlsClientProtocol(tcpClient.GetStream());
|
||||
_tlsClient = new InternalTlsClient(hostname, new BcTlsCrypto(new SecureRandom()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user