Skip to content

Commit c17eaa3

Browse files
committed
quic: add natRebinding argument to docs
PR-URL: #34669 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 442968c commit c17eaa3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api/quic.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1246,12 +1246,16 @@ empty object when the key exchange is not ephemeral. The supported types are
12461246

12471247
For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`.
12481248

1249-
#### `quicclientsession.setSocket(socket])`
1249+
#### `quicclientsession.setSocket(socket[, natRebinding])`
12501250
<!-- YAML
12511251
added: REPLACEME
12521252
-->
12531253

12541254
* `socket` {QuicSocket} A `QuicSocket` instance to move this session to.
1255+
* `natRebinding` {boolean} When `true`, indicates that the local address is to
1256+
be changed without triggering address validation. This will be rare and will
1257+
typically be used only to test resiliency in NAT rebind scenarios.
1258+
**Default**: `false`.
12551259
* Returns: {Promise}
12561260

12571261
Migrates the `QuicClientSession` to the given `QuicSocket` instance. If the new

0 commit comments

Comments
 (0)