Skip to content

Commit

Permalink
Allow binding some IPv6 ports to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Feb 5, 2025
1 parent 8fea44d commit 1ed46a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/grpc-js-xds/interop/xds-interop-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ async function main() {
case 'IPV6':
await serverBindPromise(server, `[::1]:${argv.port}`, creds);
for (const address of getIPv6Addresses()) {
await serverBindPromise(server, `[${address}]:${argv.port}`, creds);
try {
await serverBindPromise(server, `[${address}]:${argv.port}`, creds);
} catch (e) {
console.log(`Binding ${address} failed with error ${(e as Error).message}`);
}
}
break;
default:
Expand Down

0 comments on commit 1ed46a1

Please sign in to comment.