Skip to content

Commit

Permalink
feat: add recall enable_broadcast before send message (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
marfanr authored Jun 23, 2024
1 parent c9b55a9 commit e63496e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/udp/broadcaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Broadcaster::~Broadcaster() {

size_t Broadcaster::send_raw(const char * data, const size_t & length) {
// Obtain all addresses
this->enable_broadcast(true);
auto addresses = broadcast_addresses;
for (const auto & ip : target_ips) {
addresses.push_back(Address(ip, port));
Expand Down

0 comments on commit e63496e

Please sign in to comment.