mirror of https://github.com/grpc/grpc-node.git
Update http_proxy.ts
This commit is contained in:
parent
6a99983ed1
commit
148b273f19
|
|
@ -217,7 +217,7 @@ export function getProxiedConnection(
|
||||||
* See https://github.com/grpc/grpc-node/pull/1369 for more info. */
|
* See https://github.com/grpc/grpc-node/pull/1369 for more info. */
|
||||||
const targetPath = getDefaultAuthority(parsedTarget);
|
const targetPath = getDefaultAuthority(parsedTarget);
|
||||||
const hostPort = splitHostPort(targetPath);
|
const hostPort = splitHostPort(targetPath);
|
||||||
const remoteHost = (hostPort !== null) ? hostPort.host : targetPath;
|
const remoteHost = hostPort?.host ?? targetPath;
|
||||||
|
|
||||||
const cts = tls.connect(
|
const cts = tls.connect(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue