Skip to content

Commit

Permalink
IPV6 suppofg
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapanila committed Dec 3, 2024
1 parent 5d07c31 commit 814cd8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sharpcaster/ChromecastLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ private void OnServiceAdded(object sender, ServiceAnnouncementEventArgs e)
.ToDictionary(y => y[0], y => y[1]);
if (!txtValues.ContainsKey("fn")) return;
var ip = e.Announcement.Addresses[0];
Uri.TryCreate("https://" + ip, UriKind.Absolute, out Uri myUri);
var uriBuilder = new UriBuilder("https", ip.ToString());
Uri myUri = uriBuilder.Uri;

var chromecast = new ChromecastReceiver
{
DeviceUri = myUri,
Expand Down

0 comments on commit 814cd8f

Please sign in to comment.