Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6324723

Browse filesBrowse files
santigimenoMyles Borins
authored andcommitted
doc,dgram: fix addMembership documentation
Adding membership using `IP_ADD_MEMBERSHIP` with interface address set to `INADDR_ANY` for `IPv4` or as an index of `0` for `IPv6` leads to using only one interface selected by the operating system. Fixes: #1692 PR-URL: #7244 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent ece428e commit 6324723
Copy full SHA for 6324723

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/dgram.md‎

Copy file name to clipboardExpand all lines: doc/api/dgram.md
+5-4Lines changed: 5 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ socket.on('message', (msg, rinfo) => {
7575
* `multicastAddress` {String}
7676
* `multicastInterface` {String}, Optional
7777

78-
Tells the kernel to join a multicast group at the given `multicastAddress`
79-
using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface`
80-
argument is not specified, the operating system will try to add membership to
81-
all valid networking interfaces.
78+
Tells the kernel to join a multicast group at the given `multicastAddress` and
79+
`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the
80+
`multicastInterface` argument is not specified, the operating system will choose
81+
one interface and will add membership to it. To add membership to every
82+
available interface, call `addMembership` multiple times, once per interface.
8283

8384
### socket.address()
8485

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.