mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
allow https.cabundle in IRC bot
Summary: Adds support for custom SSL certs in the IRC bot config, same as in .arcconfig Test Plan: Bot wouldn't connect before. Added this code and corresponding line in bot config, now it does. Reviewers: #blessed_reviewers, epriestley Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8393
This commit is contained in:
parent
b49b913166
commit
3787a8d3db
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ final class PhabricatorBot extends PhabricatorDaemon {
|
||||||
$this->handlers[] = $obj;
|
$this->handlers[] = $obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ca_bundle = idx($config, 'https.cabundle');
|
||||||
|
if ($ca_bundle) {
|
||||||
|
HTTPSFuture::setGlobalCABundleFromPath($ca_bundle);
|
||||||
|
}
|
||||||
|
|
||||||
$conduit_uri = idx($config, 'conduit.uri');
|
$conduit_uri = idx($config, 'conduit.uri');
|
||||||
if ($conduit_uri) {
|
if ($conduit_uri) {
|
||||||
$conduit_user = idx($config, 'conduit.user');
|
$conduit_user = idx($config, 'conduit.user');
|
||||||
|
|
Loading…
Reference in a new issue