Skip to content

Commit

Permalink
Fix Multi-Routing-Managers in one Process (#603) (#654)
Browse files Browse the repository at this point in the history
Removing statics (singletons) enables to run multiple routing Managers in one process.

Signed-off-by: Gunnar Andersson <[email protected]>
Co-authored-by: Kamil Poleszczuk <[email protected]>
  • Loading branch information
akhzarj and Kamil Poleszczuk authored Nov 28, 2024
1 parent 28223e2 commit bbd29db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbd29db

Please sign in to comment.