do not use server override in php interop client by default

pull/17407/head
Jan Tattermusch 6 years ago
parent 4f261a071e
commit b4d4f2c467
  1. 6
      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();
}

Loading…
Cancel
Save