From ca380f01e0ee427008933cec5724e035aca858f5 Mon Sep 17 00:00:00 2001 From: mag123c Date: Fri, 2 Jan 2026 10:33:51 +0900 Subject: [PATCH] doc: add reusePort error behavior to net module --- doc/api/dgram.md | 2 +- doc/api/net.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 8ea655f645bc4d..e8efbcfd262b0e 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -951,7 +951,7 @@ changes: port, even if another process has already bound a socket on it. Incoming datagrams are distributed to listening sockets. The option is available only on some platforms, such as Linux 3.9+, DragonFlyBSD 3.6+, FreeBSD 12.0+, - Solaris 11.4, and AIX 7.2.5+. On unsupported platforms this option raises an + Solaris 11.4, and AIX 7.2.5+. On unsupported platforms, this option raises an error when the socket is bound. **Default:** `false`. * `ipv6Only` {boolean} Setting `ipv6Only` to `true` will diff --git a/doc/api/net.md b/doc/api/net.md index 7d8b863bdff4d8..0bc2adbd455b8b 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -558,7 +558,8 @@ changes: multiple sockets on the same host to bind to the same port. Incoming connections are distributed by the operating system to listening sockets. This option is available only on some platforms, such as Linux 3.9+, DragonFlyBSD 3.6+, FreeBSD 12.0+, - Solaris 11.4, and AIX 7.2.5+. **Default:** `false`. + Solaris 11.4, and AIX 7.2.5+. On unsupported platforms, this option raises + an error. **Default:** `false`. * `path` {string} Will be ignored if `port` is specified. See [Identifying paths for IPC connections][]. * `port` {number}