Skip to content
Snippets Groups Projects
Commit d06692b4 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

fix: it seems on some platforms tls no longer works with epp.zarc.net.za

parent fac1f6de
No related branches found
No related tags found
1 merge request!32Nkupdates
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
* @return a string containing the server <greeting> * @return a string containing the server <greeting>
*/ */
function connect($host, $port=700, $timeout=1, $ssl=true, $context=NULL) { function connect($host, $port=700, $timeout=1, $ssl=true, $context=NULL) {
$target = sprintf('%s://%s:%d', ($ssl === true ? 'tls' : 'tcp'), $host, $port); $target = sprintf('%s://%s:%d', ($ssl === true ? 'ssl' : 'tcp'), $host, $port);
if (is_resource($context)) { if (is_resource($context)) {
$result = stream_socket_client($target, $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $context); $result = stream_socket_client($target, $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment