From ad68a0d9e3e21baebb2c8c2fa81398d171de72bb Mon Sep 17 00:00:00 2001 From: Ashlyn Fischer Date: Sat, 25 Apr 2026 14:39:14 +0200 Subject: [PATCH] filter for V4 capable network interfaces (filters out VPNs and similar installed network interfaces) --- addons/deploy_to_steamos/SteamOSDevkitManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/deploy_to_steamos/SteamOSDevkitManager.cs b/addons/deploy_to_steamos/SteamOSDevkitManager.cs index 501f0ed..0431470 100644 --- a/addons/deploy_to_steamos/SteamOSDevkitManager.cs +++ b/addons/deploy_to_steamos/SteamOSDevkitManager.cs @@ -3,6 +3,7 @@ using System.Runtime.InteropServices; using System.IO; using System.Linq; +using System.Net.NetworkInformation; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -26,7 +27,11 @@ public class SteamOSDevkitManager /// A list of valid SteamOS devkit devices public static async Task> ScanDevices() { - var networkDevices = await ZeroconfResolver.ResolveAsync(SteamOSProtocol); + var ipv4Interfaces = NetworkInterface.GetAllNetworkInterfaces() + .Where(ni => ni.Supports(NetworkInterfaceComponent.IPv4)) + .ToArray(); + + var networkDevices = await ZeroconfResolver.ResolveAsync(SteamOSProtocol, netInterfacesToSendRequestOn: ipv4Interfaces); List devices = new(); // Iterate through all network devices and request further connection info from the service