From 77afeb2ec7c835e6c57fc8dd46deae094cb98dab Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Thu, 9 Jun 2016 11:45:40 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/issues/1692 PR-URL: https://github.com/nodejs/node/pull/7244 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- doc/api/dgram.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index 7a09c9385a82a6..df479a8e31df60 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -78,10 +78,11 @@ added: v0.6.9 * `multicastAddress` {String} * `multicastInterface` {String}, Optional -Tells the kernel to join a multicast group at the given `multicastAddress` -using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` -argument is not specified, the operating system will try to add membership to -all valid networking interfaces. +Tells the kernel to join a multicast group at the given `multicastAddress` and +`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the +`multicastInterface` argument is not specified, the operating system will choose +one interface and will add membership to it. To add membership to every +available interface, call `addMembership` multiple times, once per interface. ### socket.address()