Enabled wifi lan medium. fixed bug with returned service id in avahi onItemNew

This commit is contained in:
kidfromjupiter
2026-01-06 05:24:48 +00:00
parent 0432c47542
commit 0d7922dc89
4 changed files with 11 additions and 8 deletions
@@ -46,7 +46,7 @@ void ServiceBrowser::onItemNew(const int32_t &interface,
info.SetServiceName(r_name);
info.SetIPAddress(r_address);
info.SetPort(r_port);
info.SetServiceType(r_type);
info.SetServiceType(r_type + "."); // discovery callback expects an extra period at t
for (auto &attr : r_txt) {
auto attr_str = std::string(attr.begin(), attr.end());
size_t pos = attr_str.find('=');