From 954644ef574ec17579ee6cb803cbd877c6a1d6e5 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Mon, 15 Apr 2019 00:05:40 +0200 Subject: [PATCH] Broadcast discovery fix local port setting --- libretroshare/src/services/broadcastdiscoveryservice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/services/broadcastdiscoveryservice.cc b/libretroshare/src/services/broadcastdiscoveryservice.cc index 80bbabdd8..f9031abf3 100644 --- a/libretroshare/src/services/broadcastdiscoveryservice.cc +++ b/libretroshare/src/services/broadcastdiscoveryservice.cc @@ -201,7 +201,7 @@ RsBroadcastDiscoveryResult BroadcastDiscoveryService::createResult( rbdr.locator. setScheme("ipv4"). setHost(UDC::IpToString(ipp.ip())). - setPort(static_cast(ipp.port()) ); + setPort(bdp.mLocalPort); return rbdr; }