Skip to content

Commit 125df68

Browse files
committed
Enable SNI when needed
1 parent b27a041 commit 125df68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bolt/BoltConnectionPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function enableSsl(string $host, string $sslConfig, StreamSocket $sock):
5252
// Pass a standard option to enable ssl as there is no direct flag
5353
// and \Bolt\Bolt only turns on ssl if an option is passed.
5454
$options = ['verify_peer' => true];
55-
if (filter_var($host, FILTER_VALIDATE_IP)) {
55+
if (!filter_var($host, FILTER_VALIDATE_IP)) {
5656
$options['SNI_enabled'] = true;
5757
}
5858
if ($sslConfig === 's') {

0 commit comments

Comments
 (0)