Skip to content

Commit

Permalink
Minor typo fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
wokhan committed Jan 12, 2023
1 parent 6e32e3a commit bc3be7d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Common/Net/IP/IPHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ internal static string GetRealAddress(byte[] _remoteAddress)
public static string MergePorts(IEnumerable<int> ports)
{
var result = "";
var BeginRange = -2; //-2 to make sure it never matches any starting port (0 or larger).
var BeginRange = -2; // -2 to make sure it never matches any starting port (0 or larger).
var EndRange = -2; //Initialization strictly speaking not necessary, but it shuts up a compiler warning.
foreach (var port in ports)
{
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions Common/Net/IP/UDP/UDPHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using System.ComponentModel;
using System.Runtime.InteropServices;

using Wokhan.WindowsFirewallNotifier.Common.Net.IP.UDP.UDP6;

using static Wokhan.WindowsFirewallNotifier.Common.Net.IP.IPHelper;

namespace Wokhan.WindowsFirewallNotifier.Common.Net.IP.UDP;
Expand Down Expand Up @@ -53,6 +51,6 @@ internal static IEnumerable<IConnectionOwnerInfo> GetAllUDPConnections<TTable, T
}

public static IEnumerable<IConnectionOwnerInfo> GetAllUDPConnections() => GetAllUDPConnections<UDP4.MIB_UDPTABLE_OWNER_MODULE, UDP4.MIB_UDPROW_OWNER_MODULE>(AF_INET.IP4);
public static IEnumerable<IConnectionOwnerInfo> GetAllUDP6Connections() => GetAllUDPConnections<MIB_UDP6TABLE_OWNER_MODULE, MIB_UDP6ROW_OWNER_MODULE>(AF_INET.IP6);
public static IEnumerable<IConnectionOwnerInfo> GetAllUDP6Connections() => GetAllUDPConnections<UDP6.MIB_UDP6TABLE_OWNER_MODULE, UDP6.MIB_UDP6ROW_OWNER_MODULE>(AF_INET.IP6);

}

0 comments on commit bc3be7d

Please sign in to comment.