Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/NodeJS/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ abstract class Server
*/
protected $connection;

/**
* @var boolean
*/
protected $strictSSL;

/**
* Constructor
*
Expand Down Expand Up @@ -233,6 +238,28 @@ public function getThreshold()
return $this->threshold;
}

/**
* Setter strict SSL
*
* @param boolean Whether to use strictSSL or not.
*
*/
public function setStrictSSL($strict = TRUE)
{
return $this->strictSSL = $strict;
}

/**
* Getter strict SSL
*
* @return boolean Whether to use strictSSL or not.
*
*/
public function getStrictSSL()
{
return $this->strictSSL;
}

/**
* Getter process object
*
Expand Down Expand Up @@ -423,6 +450,7 @@ protected function createTemporaryServer()
'%host%' => $this->host,
'%port%' => $this->port,
'%modules_path%' => $this->nodeModulesPath,
'%strict_ssl%' => $this->strictSSL,
));

$serverPath = tempnam(sys_get_temp_dir(), 'mink_nodejs_server');
Expand Down
1 change: 1 addition & 0 deletions src/NodeJS/Server/ZombieServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ protected function getServerScript()
stream.on('end', function () {
if (browser == null) {
browser = new zombie();
browser.strictSSL = %strict_ssl%;

// Clean up old pointers
pointers = [];
Expand Down