From 73827cd34dd498ae4850fe84bc992dd3f86bd0a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Tue, 9 Apr 2019 15:12:37 -0400
Subject: [PATCH] peerdiscovery: allow IPV6_MULTICAST_IF failure

---
 src/peer_discovery.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/peer_discovery.cpp b/src/peer_discovery.cpp
index 4c605857..77d8ec28 100644
--- a/src/peer_discovery.cpp
+++ b/src/peer_discovery.cpp
@@ -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;
-- 
GitLab