From c17eaa3f3fe1ed18aef661540b07e80404172431 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Fri, 7 Aug 2020 12:28:27 -0700 Subject: [PATCH] quic: add natRebinding argument to docs PR-URL: https://github.com/nodejs/node/pull/34669 Reviewed-By: Anna Henningsen --- doc/api/quic.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index 5595444906882d..84484357b72fb4 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1246,12 +1246,16 @@ empty object when the key exchange is not ephemeral. The supported types are For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. -#### `quicclientsession.setSocket(socket])` +#### `quicclientsession.setSocket(socket[, natRebinding])` * `socket` {QuicSocket} A `QuicSocket` instance to move this session to. +* `natRebinding` {boolean} When `true`, indicates that the local address is to + be changed without triggering address validation. This will be rare and will + typically be used only to test resiliency in NAT rebind scenarios. + **Default**: `false`. * Returns: {Promise} Migrates the `QuicClientSession` to the given `QuicSocket` instance. If the new