mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-23 20:11:49 +00:00
Make mcast/bcast consistent across stacks
Fix net_builtin inconsistency
This commit is contained in:
1 parent
f70647e28e
commit
73bec74380
7 files changed
+127
-111
No files matched your search
@@ -504,7 +504,7 @@ static void handle_mdns_record(struct mg_connection *c) {
|
||||
p = build_name(respname, p);
|
||||
p = build_a_record(c, p);
|
||||
}
|
||||
if (!req.is_unicast) memcpy(&c->rem, &c->loc, sizeof(c->rem));
|
||||
if (!req.is_unicast) mg_multicast_restore(c, (uint8_t *) &c->loc);
|
||||
mg_send(c, buf, (size_t) (p - buf)); // And send it!
|
||||
MG_DEBUG(("mDNS %c response sent", req.is_unicast ? 'U' : 'M'));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user