We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b892995 commit 4c0d75cCopy full SHA for 4c0d75c
roles/lib/files/FWO.Basics/IpOperations.cs
@@ -142,8 +142,7 @@ private static bool IsValidIPv4(string ipAddress)
142
{
143
byte[] addBytes = [.. ipAddress.Split('.').Where(_ => byte.Parse(_) <= 255 && byte.Parse(_) >= 0).Select(byte.Parse)];
144
145
- return addBytes.Length != 4;
146
-
+ return addBytes.Length == 4;
147
}
148
149
public static string GetObjectType(string ip1, string ip2)
0 commit comments