Skip to content

Commit

Permalink
rollbacks for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Nov 14, 2023
1 parent 0e9ae6e commit 8a9d556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions ecal/core/src/io/udp_configurations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,6 @@ namespace eCAL

std::string GetPayloadMulticastAddress(const std::string& topic_name)
{
// local host only
const bool local_only = !Config::IsNetworkEnabled();
if (local_only)
{
return LocalHost();
}

if (topic_name.empty())
{
return Config::GetUdpMulticastGroup();
}

// v1
if (Config::GetUdpMulticastConfigVersion() == Config::UdpConfigVersion::V1)
{
Expand All @@ -98,7 +86,7 @@ namespace eCAL
const bool local_only = !Config::IsNetworkEnabled();
if (local_only)
{
return 0;
return 1;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/readwrite/ecal_reader_udp_mc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace eCAL
void CUDPReaderLayer::Initialize()
{
SReceiverAttr attr;
attr.ipaddr = UDP::GetPayloadMulticastAddress("");
attr.ipaddr = Config::GetUdpMulticastGroup();
attr.port = UDP::GetPayloadPort();
attr.localhost = false;
attr.loopback = true;
Expand Down

0 comments on commit 8a9d556

Please sign in to comment.