Skip to content

Commit

Permalink
Merge pull request #23 from WyriHaximus/master
Browse files Browse the repository at this point in the history
Added peer_name to ssl context options
  • Loading branch information
cboden committed Mar 11, 2015
2 parents 5b4ccbb + e81abac commit 3cc2bfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function createSocketForAddress($address, $port, $hostName = null)
if ($hostName !== null) {
$contextOpts['ssl']['SNI_enabled'] = true;
$contextOpts['ssl']['SNI_server_name'] = $hostName;
$contextOpts['ssl']['peer_name'] = $hostName;
}

$flags = STREAM_CLIENT_CONNECT | STREAM_CLIENT_ASYNC_CONNECT;
Expand Down

0 comments on commit 3cc2bfd

Please sign in to comment.