From d1d3bf4eb10de8856f6585e3f2ec616a427d8199 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 23 Jun 2014 16:56:20 -0700 Subject: [PATCH] Minor, fix a Conduit issue with the bot? Test Plan: do it live --- src/infrastructure/daemon/bot/PhabricatorBot.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/infrastructure/daemon/bot/PhabricatorBot.php b/src/infrastructure/daemon/bot/PhabricatorBot.php index a8f11c0d6e..a01b010e9d 100644 --- a/src/infrastructure/daemon/bot/PhabricatorBot.php +++ b/src/infrastructure/daemon/bot/PhabricatorBot.php @@ -59,6 +59,7 @@ final class PhabricatorBot extends PhabricatorDaemon { // domain without the "/api/" part. $conduit_uri = new PhutilURI($conduit_uri); $conduit_uri->setPath('/api/'); + $conduit_host = $conduit_uri->getDomain(); $conduit_uri = (string)$conduit_uri; $conduit = new ConduitClient($conduit_uri); @@ -68,6 +69,7 @@ final class PhabricatorBot extends PhabricatorDaemon { 'client' => 'PhabricatorBot', 'clientVersion' => '1.0', 'clientDescription' => php_uname('n').':'.$nick, + 'host' => $conduit_host, 'user' => $conduit_user, 'certificate' => $conduit_cert, ));