Fix EndpointSubset.toString() to work without ports

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2020-05-03 22:29:41 +03:00
1 parent 03aab714d8
commit ee9879d171
1 file changed
+3
@@ -86,6 +86,9 @@ export class EndpointSubset implements IEndpointSubset {
return ""
}
return this.addresses.map(address => {
if (!this.ports) {
return address.ip
}
return this.ports.map(port => {
return `${address.ip}:${port.port}`
}).join(", ")