@citymallservices/k8s-grpc-resolver
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "@citymallservices/k8s-grpc-resolver", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -73,2 +73,13 @@ import { ChannelOptions, Metadata, StatusObject } from "@grpc/grpc-js"; | ||
this.serviceName = hostPort?.host; | ||
if ( | ||
this.serviceName?.includes("localhost") || | ||
this.serviceName?.includes("127.0.0.1") | ||
) { | ||
this.error = { | ||
code: Status.UNAVAILABLE, | ||
details: `Failed to parse ${target.scheme} address ${target.path} ${target.authority}`, | ||
metadata: new Metadata(), | ||
}; | ||
return; | ||
} | ||
this.port = hostPort?.port; | ||
@@ -75,0 +86,0 @@ |
35006
662