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 77afeb2

Browse filesBrowse files
santigimenoevanlucas
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 64e2eed commit 77afeb2
Copy full SHA for 77afeb2

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
@@ -78,10 +78,11 @@ added: v0.6.9
7878
* `multicastAddress` {String}
7979
* `multicastInterface` {String}, Optional
8080

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

8687
### socket.address()
8788

0 commit comments

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