Skip to content

Commit

Permalink
Merge branch 'foxsi:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
thanasipantazides authored Dec 3, 2024
2 parents 10a8f65 + f488c48 commit d37b34d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LineInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ LineInterface::LineInterface(int argc, char* argv[], boost::asio::io_context& co

// all ethernet_interfaces should have an address
this_addr = ethif.at("address").get<std::string>();

// if mcast_group exists, use that as the address instead
try {
this_addr = ethif.at("mcast_group").get<std::string>();
verbose_print("\t" + this_name + " ethernet address replaced by multicast group");
} catch(std::exception& e) { }

if (this_system_object.type == COMMAND_TYPE_OPTIONS::ETHERNET) {
try {
Ethernet* eth = new Ethernet(
Expand Down

0 comments on commit d37b34d

Please sign in to comment.