Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,12 @@
default=None,
help='build with experimental QUIC support')

parser.add_argument('--experimental-dtls',
action='store_true',
dest='experimental_dtls',
default=None,
help='build with experimental DTLS support')

parser.add_argument('--ninja',
action='store_true',
dest='use_ninja',
Expand Down Expand Up @@ -2350,6 +2356,10 @@ def configure_quic(o):
o['variables']['node_use_quic'] = b(options.experimental_quic and
not options.without_ssl)

def configure_dtls(o):
o['variables']['node_use_dtls'] = b(options.experimental_dtls and
not options.without_ssl)

def configure_static(o):
if options.fully_static or options.partly_static:
if flavor == 'mac':
Expand Down Expand Up @@ -2808,6 +2818,7 @@ def make_bin_override():
configure_v8(output, configurations)
configure_openssl(output)
configure_quic(output)
configure_dtls(output)
configure_intl(output)
configure_static(output)
configure_inspector(output)
Expand Down
13 changes: 13 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,17 @@ If present, Node.js will look for a
`node.config.json` file in the current working directory and load it as a
configuration file.

### `--experimental-dtls`

<!-- YAML
added: REPLACEME
-->

> Stability: 1 - Experimental

Enable experimental support for the DTLS protocol. See the
[dtls documentation][] for details.

### `--experimental-eventsource`

<!-- YAML
Expand Down Expand Up @@ -3736,6 +3747,7 @@ one is included in the list below.
* `--experimental-abortcontroller`
* `--experimental-addon-modules`
* `--experimental-detect-module`
* `--experimental-dtls`
* `--experimental-eventsource`
* `--experimental-ffi`
* `--experimental-import-meta-resolve`
Expand Down Expand Up @@ -4406,6 +4418,7 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12
[debugger]: debugger.md
[debugging security implications]: https://nodejs.org/en/docs/guides/debugging-getting-started/#security-implications
[deprecation warnings]: deprecations.md#list-of-deprecated-apis
[dtls documentation]: dtls.md
[emit_warning]: process.md#processemitwarningwarning-options
[environment_variables]: #environment-variables_1
[filtering tests by name]: test.md#filtering-tests-by-name
Expand Down
Loading
Loading