mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-29 12:06:51 +00:00
SSL
This commit is contained in:
1 parent
5991cec92d
commit
cca00ca97e
4 files changed
+253
-132
No files matched your search
@@ -306,9 +306,9 @@ namespace Esyur.Net.HTTP
|
||||
else
|
||||
ipAdd = IPAddress.Parse(IP);
|
||||
|
||||
// if (ssl)
|
||||
// listener = new SSLSocket(new IPEndPoint(ipAdd, port), new X509Certificate2(certificate));
|
||||
// else
|
||||
if (SSL)
|
||||
listener = new SSLSocket(new IPEndPoint(ipAdd, Port), new X509Certificate2(Certificate));
|
||||
else
|
||||
listener = new TCPSocket(new IPEndPoint(ipAdd, Port));
|
||||
|
||||
Start(listener);
|
||||
|
||||
Reference in new issue
Block a user