aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-12-06 10:58:55 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-12-20 14:49:54 +0100
commitb4d4f2c46736294ed6ed2790074ceb92ceb29dd1 (patch)
tree48ac970a1554a35b9ba66511654b82849a842f06 /src
parent4f261a071e8e49373bf6b26831cc4768e00ac38d (diff)
do not use server override in php interop client by default
Diffstat (limited to 'src')
-rwxr-xr-xsrc/php/tests/interop/interop_client.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/php/tests/interop/interop_client.php b/src/php/tests/interop/interop_client.php
index c865678f70..3e19c7ae33 100755
--- a/src/php/tests/interop/interop_client.php
+++ b/src/php/tests/interop/interop_client.php
@@ -538,7 +538,7 @@ function _makeStub($args)
$test_case = $args['test_case'];
- $host_override = 'foo.test.google.fr';
+ $host_override = '';
if (array_key_exists('server_host_override', $args)) {
$host_override = $args['server_host_override'];
}
@@ -565,7 +565,9 @@ function _makeStub($args)
$ssl_credentials = Grpc\ChannelCredentials::createSsl();
}
$opts['credentials'] = $ssl_credentials;
- $opts['grpc.ssl_target_name_override'] = $host_override;
+ if (!empty($host_override)) {
+ $opts['grpc.ssl_target_name_override'] = $host_override;
+ }
} else {
$opts['credentials'] = Grpc\ChannelCredentials::createInsecure();
}