mirror of
https://github.com/grpc/grpc-node.git
synced 2026-01-25 14:27:06 +00:00
Merge branch 'grpc-js_proxy_support' of github.com:murgatroid99/grpc-node into grpc-js_proxy_support
This commit is contained in:
commit
f41daae844
@ -338,10 +338,10 @@ export function parseTarget(target: string): dnsUrl | null {
|
||||
const match = IPV4_REGEX.exec(target) ?? IPV6_REGEX.exec(target) ?? IPV6_BRACKET_REGEX.exec(target) ?? DNS_REGEX.exec(target)
|
||||
if (match) {
|
||||
return {
|
||||
host: match[0],
|
||||
port: match[1] ?? undefined
|
||||
host: match[1],
|
||||
port: match[2] ?? undefined
|
||||
};
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user