Skip to content

Commit

Permalink
Merge pull request #757 from dsmurfin/master
Browse files Browse the repository at this point in the history
Send multicast on IPv4 interface was always returning false
  • Loading branch information
chrisballinger authored Jan 24, 2021
2 parents dbdc006 + b9479e5 commit 9f47ef9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/GCD/GCDAsyncUdpSocket.m
Original file line number Diff line number Diff line change
Expand Up @@ -3570,10 +3570,10 @@ - (BOOL)sendIPv4MulticastOnInterface:(NSString*)interface error:(NSError **)errP
struct in_addr interface_addr = nativeIface->sin_addr;
int status = setsockopt(self->socket4FD, IPPROTO_IP, IP_MULTICAST_IF, &interface_addr, sizeof(interface_addr));
if (status != 0) {
err = [self errnoErrorWithReason:@"Error in setsockopt() function"];
err = [self errnoErrorWithReason:@"Error in setsockopt() function"];
return_from_block;
result = YES;
}
}
result = YES;
}

}};
Expand Down

1 comment on commit 9f47ef9

@Joebayld
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a big fix but has never been tagged for release in over a year! Can this please get tagged??

Please sign in to comment.