From 90394f788e4b8d60fe8fd3c37f0d0c3258779daf Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 6 Sep 2017 12:37:42 -0500 Subject: [PATCH] minor --- src/remote/blockingUDPTransport.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/remote/blockingUDPTransport.cpp b/src/remote/blockingUDPTransport.cpp index c656cdd..8501a30 100644 --- a/src/remote/blockingUDPTransport.cpp +++ b/src/remote/blockingUDPTransport.cpp @@ -708,9 +708,11 @@ void initializeUDPTransports(bool serverFlag, BlockingUDPTransport::shared_pointer transport2; - if(node.ifaceBCast.ia.sin_family == AF_UNSPEC || + if(node.ifaceBCast.sa.sa_family == AF_UNSPEC || node.ifaceBCast.ia.sin_addr.s_addr == listenLocalAddress.ia.sin_addr.s_addr) { - LOG(logLevelWarn, "Unable to find broadcast address of interface %s.", inetAddressToString(node.ifaceAddr, false).c_str()); + // warning if not point-to-point + LOG(node.ifaceDest.sa.sa_family == AF_UNSPEC ? logLevelDebug : logLevelWarn, + "Unable to find broadcast address of interface %s.", inetAddressToString(node.ifaceAddr, false).c_str()); } #if !defined(_WIN32) else