From 6d96a9a6126fb94a3e0975ddfdf0791fb81e6060 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 16 May 2018 17:06:48 -0700 Subject: [PATCH] Provide hostname to getDefaultChannel --- src/php/lib/Grpc/BaseStub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/php/lib/Grpc/BaseStub.php b/src/php/lib/Grpc/BaseStub.php index 489d96c8aae..b9c50b1da68 100644 --- a/src/php/lib/Grpc/BaseStub.php +++ b/src/php/lib/Grpc/BaseStub.php @@ -69,7 +69,7 @@ class BaseStub return; } - $this->channel = static::getDefaultChannel($opts); + $this->channel = static::getDefaultChannel($hostname, $opts); } /** @@ -79,7 +79,7 @@ class BaseStub * * @return Channel The channel */ - public static function getDefaultChannel(array $opts) + public static function getDefaultChannel($hostname, array $opts) { $package_config = json_decode( file_get_contents(dirname(__FILE__).'/../../composer.json'),