[Modify] Polish it
This commit is contained in:
		@@ -833,18 +833,14 @@ namespace WebSocketSharp.Server
 | 
			
		||||
      var path = _listener.CertificateFolderPath;
 | 
			
		||||
      var withPort = EndPointListener.CertificateExists (_port, path);
 | 
			
		||||
 | 
			
		||||
      var both = byUser && withPort;
 | 
			
		||||
      if (both) {
 | 
			
		||||
        _log.Warn ("The server certificate associated with the port is used.");
 | 
			
		||||
        return true;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      var either = byUser || withPort;
 | 
			
		||||
      if (!either) {
 | 
			
		||||
      if (!(byUser || withPort)) {
 | 
			
		||||
        message = "There is no server certificate for secure connection.";
 | 
			
		||||
        return false;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (byUser && withPort)
 | 
			
		||||
        _log.Warn ("The server certificate associated with the port is used.");
 | 
			
		||||
 | 
			
		||||
      return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user