mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
grpc-js: Merge remote-tracking branch 'upstream/master' into patch/grpc-js-linting
This commit is contained in:
commit
2c3c22ea2a
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@grpc/grpc-js",
|
||||
"version": "0.7.8",
|
||||
"version": "0.7.9",
|
||||
"description": "gRPC Library for Node - pure JS implementation",
|
||||
"homepage": "https://grpc.io/",
|
||||
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
|
||||
|
||||
@ -181,7 +181,9 @@ export function getProxiedConnection(
|
||||
'Failed to connect to ' +
|
||||
subchannelAddress +
|
||||
' through proxy ' +
|
||||
PROXY_INFO.address
|
||||
PROXY_INFO.address +
|
||||
' with status ' +
|
||||
res.statusCode
|
||||
);
|
||||
reject();
|
||||
}
|
||||
@ -190,7 +192,10 @@ export function getProxiedConnection(
|
||||
request.removeAllListeners();
|
||||
log(
|
||||
LogVerbosity.ERROR,
|
||||
'Failed to connect to proxy ' + PROXY_INFO.address
|
||||
'Failed to connect to proxy ' +
|
||||
PROXY_INFO.address +
|
||||
' with error ' +
|
||||
err.message
|
||||
);
|
||||
reject();
|
||||
});
|
||||
|
||||
@ -306,16 +306,10 @@ class DnsResolver implements Resolver {
|
||||
IPV6_REGEX.exec(target) ||
|
||||
IPV6_BRACKET_REGEX.exec(target);
|
||||
if (ipMatch) {
|
||||
if (ipMatch[2]) {
|
||||
return ipMatch[1] + ':' + ipMatch[2];
|
||||
}
|
||||
return ipMatch[1];
|
||||
}
|
||||
const dnsMatch = DNS_REGEX.exec(target);
|
||||
if (dnsMatch) {
|
||||
if (dnsMatch[2]) {
|
||||
return dnsMatch[1] + ':' + dnsMatch[2];
|
||||
}
|
||||
return dnsMatch[1];
|
||||
}
|
||||
throw new Error(`Failed to parse target ${target}`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user