Skip to content

Commit 46b64a0

Browse files
committed
Fixed a small bug in app configuration
1 parent 13d8d43 commit 46b64a0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

NetStalker/NetStalker/MainLogic/Device.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public bool IsGateway
4444
{
4545
get
4646
{
47-
if (MAC.Equals(AppConfiguration.GatewayMac))
47+
if (IP.Equals(AppConfiguration.GatewayIp))
4848
{
4949
return true;
5050
}

NetStalker/NetStalker/MainLogic/Tools.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ public static string GetRoot(IPAddress IP, int Mask)
100100
}
101101

102102
/// <summary>
103-
/// Return the gateway Mac address of the selected network interface
103+
/// Return the Mac address of the selected network interface
104104
/// </summary>
105105
/// <param name="friendlyname"></param>
106106
/// <returns></returns>
107-
public static PhysicalAddress GetGatewayMAC(string FriendlyName)
107+
public static PhysicalAddress GetLocalMac(string FriendlyName)
108108
{
109109
if (string.IsNullOrEmpty(FriendlyName))
110110
throw new NullReferenceException("\"FriendlyName\" is null");

NetStalker/NetStalker/NetStalker.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
4848
<PlatformTarget>x86</PlatformTarget>
4949
<DebugType>pdbonly</DebugType>
50-
<Optimize>true</Optimize>
50+
<Optimize>false</Optimize>
5151
<OutputPath>bin\Release\</OutputPath>
5252
<DefineConstants>
5353
</DefineConstants>

0 commit comments

Comments
 (0)