From bbd29db2f5e45991dcda60047abd9b1d05a1bed3 Mon Sep 17 00:00:00 2001 From: AramKh <79518064+akhzarj@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:05:57 +0100 Subject: [PATCH] Fix Multi-Routing-Managers in one Process (#603) (#654) Removing statics (singletons) enables to run multiple routing Managers in one process. Signed-off-by: Gunnar Andersson Co-authored-by: Kamil Poleszczuk --- .../service_discovery/src/service_discovery_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implementation/service_discovery/src/service_discovery_impl.cpp b/implementation/service_discovery/src/service_discovery_impl.cpp index 9a2367c78..3d7642908 100644 --- a/implementation/service_discovery/src/service_discovery_impl.cpp +++ b/implementation/service_discovery/src/service_discovery_impl.cpp @@ -2809,11 +2809,11 @@ service_discovery_impl::check_ipv4_address( //Check unallowed ipv4 address bool is_valid = true; - static const boost::asio::ip::address_v4::bytes_type its_unicast_address = + const boost::asio::ip::address_v4::bytes_type its_unicast_address = unicast_.to_v4().to_bytes(); const boost::asio::ip::address_v4::bytes_type endpoint_address = its_address.to_v4().to_bytes(); - static const boost::asio::ip::address_v4::bytes_type its_netmask = + const boost::asio::ip::address_v4::bytes_type its_netmask = configuration_->get_netmask().to_v4().to_bytes(); //same address as unicast address of DUT not allowed