[Modify] Polish it
This commit is contained in:
parent
ca31d86c1a
commit
aec6123c19
@ -89,10 +89,11 @@ namespace WebSocketSharp.Net
|
|||||||
internal EndPointListener (
|
internal EndPointListener (
|
||||||
IPAddress address,
|
IPAddress address,
|
||||||
int port,
|
int port,
|
||||||
bool reuseAddress,
|
|
||||||
bool secure,
|
bool secure,
|
||||||
string certificateFolderPath,
|
string certificateFolderPath,
|
||||||
ServerSslConfiguration sslConfig)
|
ServerSslConfiguration sslConfig,
|
||||||
|
bool reuseAddress
|
||||||
|
)
|
||||||
{
|
{
|
||||||
if (secure) {
|
if (secure) {
|
||||||
var cert = getCertificate (port, certificateFolderPath, sslConfig.ServerCertificate);
|
var cert = getCertificate (port, certificateFolderPath, sslConfig.ServerCertificate);
|
||||||
|
@ -131,10 +131,10 @@ namespace WebSocketSharp.Net
|
|||||||
new EndPointListener (
|
new EndPointListener (
|
||||||
address,
|
address,
|
||||||
port,
|
port,
|
||||||
listener.ReuseAddress,
|
|
||||||
secure,
|
secure,
|
||||||
listener.CertificateFolderPath,
|
listener.CertificateFolderPath,
|
||||||
listener.SslConfiguration
|
listener.SslConfiguration,
|
||||||
|
listener.ReuseAddress
|
||||||
);
|
);
|
||||||
|
|
||||||
endpoints[port] = lsnr;
|
endpoints[port] = lsnr;
|
||||||
|
Loading…
Reference in New Issue
Block a user