Skip to content

Commit

Permalink
ResolveMdnsName returns empty array instead of null when mDNS lookup …
Browse files Browse the repository at this point in the history
…fails. (#1119)
  • Loading branch information
helu-milestone authored Aug 26, 2024
1 parent 3129fae commit 06f8e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/ICE/RtpIceChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,7 @@ private async Task<IPAddress[]> ResolveMdnsName(RTCIceCandidate candidate)
if (MdnsResolve != null)
{
var address = await MdnsResolve(candidate.address).ConfigureAwait(false);
return address != null ? new IPAddress[] { address } : null;
return address != null ? new IPAddress[] { address } : Array.Empty<IPAddress>();
}


Expand Down

0 comments on commit 06f8e3c

Please sign in to comment.