Skip to content

Commit

Permalink
Consider "Failed to enable crypto" as blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Aug 22, 2017
1 parent d0ea92e commit fc706fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Checkers/Sni.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ public function setTimeout($timeout)
*/
protected function hasSslError($error)
{
return preg_match('/ssl/ism', $error) && !preg_match('/timed out/ism', $error);
return (preg_match('/ssl/ism', $error) || preg_match('/enable crypto/ism', $error))
&& !preg_match('/timed out/ism', $error)
}

}
}

0 comments on commit fc706fd

Please sign in to comment.