Skip to content

Commit 4c0d75c

Browse files
.
1 parent b892995 commit 4c0d75c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

roles/lib/files/FWO.Basics/IpOperations.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ private static bool IsValidIPv4(string ipAddress)
142142
{
143143
byte[] addBytes = [.. ipAddress.Split('.').Where(_ => byte.Parse(_) <= 255 && byte.Parse(_) >= 0).Select(byte.Parse)];
144144

145-
return addBytes.Length != 4;
146-
145+
return addBytes.Length == 4;
147146
}
148147

149148
public static string GetObjectType(string ip1, string ip2)

0 commit comments

Comments
 (0)