Skip to content

Commit

Permalink
Unrolled build for rust-lang#130922
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#130922 - tyilo:udp-unspecified, r=ibraheemdev

Reference UNSPECIFIED instead of INADDR_ANY in join_multicast_v4
  • Loading branch information
rust-timer authored Sep 28, 2024
2 parents 150247c + fa3215d commit e10f5c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ impl UdpSocket {
/// This function specifies a new multicast group for this socket to join.
/// The address must be a valid multicast address, and `interface` is the
/// address of the local interface with which the system should join the
/// multicast group. If it's equal to `INADDR_ANY` then an appropriate
/// interface is chosen by the system.
/// multicast group. If it's equal to [`UNSPECIFIED`](Ipv4Addr::UNSPECIFIED)
/// then an appropriate interface is chosen by the system.
#[stable(feature = "net2_mutators", since = "1.9.0")]
pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
self.0.join_multicast_v4(multiaddr, interface)
Expand Down

0 comments on commit e10f5c3

Please sign in to comment.