Skip to content

Commit 814cd8f

Browse files
committed
IPV6 suppofg
1 parent 5d07c31 commit 814cd8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: Sharpcaster/ChromecastLocator.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ private void OnServiceAdded(object sender, ServiceAnnouncementEventArgs e)
4848
.ToDictionary(y => y[0], y => y[1]);
4949
if (!txtValues.ContainsKey("fn")) return;
5050
var ip = e.Announcement.Addresses[0];
51-
Uri.TryCreate("https://" + ip, UriKind.Absolute, out Uri myUri);
51+
var uriBuilder = new UriBuilder("https", ip.ToString());
52+
Uri myUri = uriBuilder.Uri;
53+
5254
var chromecast = new ChromecastReceiver
5355
{
5456
DeviceUri = myUri,

0 commit comments

Comments
 (0)