mirror of https://github.com/grpc/grpc-node.git
Validate that LOGICAL_DNS address is non-empty
This commit is contained in:
parent
fed7b02a35
commit
b914a0388f
|
@ -81,6 +81,9 @@ export class CdsState extends BaseXdsStreamState<Cluster__Output> implements Xds
|
||||||
if (!socketAddress) {
|
if (!socketAddress) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (socketAddress.address === '') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (socketAddress.port_specifier !== 'port_value') {
|
if (socketAddress.port_specifier !== 'port_value') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue