Remove unused function

This commit is contained in:
Santiago Lo Coco 2024-11-18 22:42:48 +01:00
parent cd594bbea0
commit 8df0a6e7dd
1 changed files with 0 additions and 22 deletions

View File

@ -48,28 +48,6 @@ namespace WebViewStream
return null;
}
private List<IPAddress> GetRoutableLocalIPs()
{
List<IPAddress> localIPs = new List<IPAddress>();
foreach (IPAddress local in Dns.GetHostEntry(Dns.GetHostName()).AddressList)
{
if (local.AddressFamily == AddressFamily.InterNetwork)
{
byte[] bytes = local.GetAddressBytes();
if (bytes[0] == 169 && bytes[1] == 254)
{
Debug.Log($"Skipping non-routable address: {local}");
continue;
}
localIPs.Add(local);
}
}
return localIPs;
}
/// <summary>
/// Starts listening for mDNS service announcements.
/// </summary>