mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
peerdiscovery: allow IPV6_MULTICAST_IF failure
This commit is contained in:
1 parent
876190a392
commit
73827cd34d
1 file changed
+2
-2
@@ -122,8 +122,8 @@ PeerDiscovery::socketJoinMulticast(int sockfd, sa_family_t family)
|
||||
ipv6_mreq config_ipv6;
|
||||
|
||||
unsigned int outif = 0;
|
||||
if( setsockopt(sockfd, IPPROTO_IPV6, IPV6_MULTICAST_IF, &outif, sizeof( outif )) < 0 ) {
|
||||
throw std::runtime_error(std::string("Bound Network Interface IPv6 Error: ") + strerror(errno));
|
||||
if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_MULTICAST_IF, &outif, sizeof(outif)) < 0) {
|
||||
//std::cerr << "Can't assign multicast interface: " << strerror(errno) << std::endl;
|
||||
}
|
||||
|
||||
unsigned int ttl6 = 20;
|
||||
|
||||
Reference in new issue
Block a user