[Modify] Polish it

master
sta 10 years ago
parent 6774f5ae37
commit 8bbb5dde09

@ -386,13 +386,13 @@ namespace WebSocketSharp.Net
return true; return true;
} }
internal static bool CertificateExists (int port, string certificateFolderPath) internal static bool CertificateExists (int port, string folderPath)
{ {
if (certificateFolderPath == null || certificateFolderPath.Length == 0) if (folderPath == null || folderPath.Length == 0)
certificateFolderPath = _defaultCertFolderPath; folderPath = _defaultCertFolderPath;
var cer = Path.Combine (certificateFolderPath, String.Format ("{0}.cer", port)); var cer = Path.Combine (folderPath, String.Format ("{0}.cer", port));
var key = Path.Combine (certificateFolderPath, String.Format ("{0}.key", port)); var key = Path.Combine (folderPath, String.Format ("{0}.key", port));
return File.Exists (cer) && File.Exists (key); return File.Exists (cer) && File.Exists (key);
} }

Loading…
Cancel
Save