From b328eb7f6da6bac8856b4a2e8412ebea2942694e Mon Sep 17 00:00:00 2001 From: densogiaichned Date: Thu, 11 Jul 2024 07:08:35 +0200 Subject: [PATCH] fix(v0.3.1): Print cpature-device friendly name --- src/dsian.TcPnScanner.CLI/CaptureDevices.cs | 2 +- src/dsian.TcPnScanner.CLI/dsian.TcPnScanner.CLI.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsian.TcPnScanner.CLI/CaptureDevices.cs b/src/dsian.TcPnScanner.CLI/CaptureDevices.cs index 17ab5ef..6e44a16 100644 --- a/src/dsian.TcPnScanner.CLI/CaptureDevices.cs +++ b/src/dsian.TcPnScanner.CLI/CaptureDevices.cs @@ -50,7 +50,7 @@ private static string PrintDeviceList(LibPcapLiveDeviceList devices) int i = 0; foreach (var dev in devices) { - sb.AppendLine($"{i}) {dev.Name} {dev.Description}"); + sb.AppendLine($"{i}) {dev.Interface.Name} {dev.Interface.FriendlyName}"); i++; } sb.AppendLine(); diff --git a/src/dsian.TcPnScanner.CLI/dsian.TcPnScanner.CLI.csproj b/src/dsian.TcPnScanner.CLI/dsian.TcPnScanner.CLI.csproj index 22f777e..e2db98d 100644 --- a/src/dsian.TcPnScanner.CLI/dsian.TcPnScanner.CLI.csproj +++ b/src/dsian.TcPnScanner.CLI/dsian.TcPnScanner.CLI.csproj @@ -18,7 +18,7 @@ Scans a PROFINET and adds all Stations to a PROFINET IO Device (TF6270) Copyright (c) 2023 densogiaichned TwinCAT Profinet Device Scanner - 0.3.0 + 0.3.1 $(Version) $(Version) false