update Program.cs for Schnierder
This commit is contained in:
parent
69cfa2e7d7
commit
63dc832a1f
|
@ -15,7 +15,7 @@ var networkInterfaces = await Nic.GetNetworkInterfaces();
|
||||||
|
|
||||||
var candidates = networkInterfaces.Where(n => n.IsUp &&
|
var candidates = networkInterfaces.Where(n => n.IsUp &&
|
||||||
n.IsEthernet &&
|
n.IsEthernet &&
|
||||||
(!n.Ip4Addresses.Any() || n.Ip4Addresses.Contains(Config.OwnAddress)));
|
(!n.Ip4Addresses.Any() || n.Ip4Addresses.Contains(Config.OwnAddress)));
|
||||||
|
|
||||||
foreach (var nic in candidates)
|
foreach (var nic in candidates)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue