Skip to content

Commit

Permalink
fix IPAddress equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
Qingxiao_Ren authored and Qingxiao_Ren committed Aug 15, 2022
1 parent 25d2fbf commit 1860d5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

[assembly: Guid("33f5795a-9f55-4965-89bc-0f413452bd0f")]

[assembly: AssemblyVersion("0.9.5")]
[assembly: AssemblyFileVersion("0.9.5")]
[assembly: AssemblyVersion("0.9.6")]
[assembly: AssemblyFileVersion("0.9.6")]
2 changes: 1 addition & 1 deletion SimpleSnmp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public bool Valid
{
get
{
if (_peerIP == IPAddress.None || _peerIP == IPAddress.Any)
if (_peerIP.Equals(IPAddress.None) || _peerIP.Equals(IPAddress.Any))
{
return false;
}
Expand Down

0 comments on commit 1860d5b

Please sign in to comment.