Skip to content

Commit

Permalink
Fixes inability to resolve IPv6 addresses on Mac platform (#6938)
Browse files Browse the repository at this point in the history
* Fixes issue #6933

* restyle
  • Loading branch information
bluebin14 authored and pull[bot] committed Jun 4, 2021
1 parent bcb1bc5 commit 4562420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/Darwin/MdnsImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ CHIP_ERROR GetAddrInfo(void * context, MdnsResolveCallback callback, uint32_t in
sdCtx->textEntries.push_back(TextEntry{ strdup(key), reinterpret_cast<const uint8_t *>(strdup(value)), valueLen });
}

err = DNSServiceGetAddrInfo(&sdRef, 0 /* flags */, interfaceId, kDNSServiceProtocol_IPv4, hostname, OnGetAddrInfo, sdCtx);
err = DNSServiceGetAddrInfo(&sdRef, 0 /* flags */, interfaceId, kDNSServiceProtocol_IPv4 | kDNSServiceProtocol_IPv6, hostname,
OnGetAddrInfo, sdCtx);
VerifyOrReturnError(CheckForSuccess(sdCtx, __func__, err, true), CHIP_ERROR_INTERNAL);

err = DNSServiceSetDispatchQueue(sdRef, chip::DeviceLayer::PlatformMgrImpl().GetWorkQueue());
Expand Down

0 comments on commit 4562420

Please sign in to comment.