We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22e62d0 commit 0555339Copy full SHA for 0555339
packages/transport-websockets/src/listener.ts
@@ -249,10 +249,13 @@ export class WebSocketListener extends TypedEventEmitter<ListenerEvents> impleme
249
}
250
251
this.listeningMultiaddr = ma
252
- const { host, port } = ma.toOptions()
253
- this.addr = `${host}:${port}`
+ const options = ma.toOptions()
+ this.addr = `${options.host}:${options.port}`
254
255
- this.server.listen(port, host)
+ this.server.listen({
256
+ ...options,
257
+ ipv6Only: options.family === 6
258
+ })
259
260
await new Promise<void>((resolve, reject) => {
261
const onListening = (): void => {
0 commit comments