Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 280f527

Browse files
committed
Merge pull request laravel#4141 from JamShady/pull-request/iron-mq-disable-ssl-verification
IronQueue now respects ssl_verifypeer settings to disable SSL check
2 parents b17e566 + be17ae1 commit 280f527

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/Illuminate/Queue/Connectors/IronConnector.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ public function connect(array $config)
4646

4747
if (isset($config['host'])) $ironConfig['host'] = $config['host'];
4848

49-
return new IronQueue(new IronMQ($ironConfig), $this->crypt, $this->request, $config['queue']);
49+
$iron = new IronMQ($ironConfig);
50+
51+
if (isset($config['ssl_verifypeer'])) {
52+
$iron->ssl_verifypeer = $config['ssl_verifypeer'];
53+
}
54+
55+
return new IronQueue($iron, $this->crypt, $this->request, $config['queue']);
5056
}
5157

5258
}

0 commit comments

Comments
 (0)