Skip to content

Commit

Permalink
fix issue #46
Browse files Browse the repository at this point in the history
  • Loading branch information
jnstahl committed Dec 3, 2023
1 parent 6d0e510 commit 379e0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Expand Up @@ -385,7 +385,7 @@ void call_HandlePTRRecord(const void* p, const void* base, boolean last, STRING_
}

void call_HandleTXTRecord(const void* p, const void* base, boolean last, STRING_ARG_DECL(key), STRING_ARG_DECL(value)) {
((MdnsRequest*)p)->callbackTXT(base, last, STRING_ARG_CALL(key), STRING_ARG_CALL(value));
((MdnsRequest*)p)->callbackTXT(base, last, STRING_ARG_CALL(key), STRING_ARG_CALL(key));
}


Expand Down

0 comments on commit 379e0b6

Please sign in to comment.