Skip to content

Commit

Permalink
Fix #46 (#51)
Browse files Browse the repository at this point in the history
* fix txt records returned as string instead of UInt8List

* fix key sent instead of value

* fix issue #46

* fix issue #45
  • Loading branch information
jnstahl authored Dec 4, 2023
1 parent 9731fd9 commit d63043f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/flutter_nsd_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace {
else {
struct hostent* ent = gethostbyname(packet.hostname.c_str());
if (ent == NULL) {
printf("cannot resolve hostname %s, returning IP address %s", packet.hostname.c_str(), packet.ipv4address.c_str());
//printf("cannot resolve hostname %s, returning IP address %s", packet.hostname.c_str(), packet.ipv4address.c_str());
packet.hostname = packet.ipv4address;
}
}
Expand Down Expand Up @@ -161,7 +161,7 @@ namespace {
void MdnsRequest::callbackSRV(const void* base, boolean last, STRING_ARG_DECL(name), STRING_ARG_DECL(hostname), int port) {
MAKE_STRING(name);
MAKE_STRING(hostname);
printf("resolved: %s, %s\n\r", _name.c_str(), _hostname.c_str());
//printf("resolved: %s, %s\n\r", _name.c_str(), _hostname.c_str());

MdnsResult& packet = packets[base];
packet.name = _name;
Expand Down

0 comments on commit d63043f

Please sign in to comment.