Added method for arg handling, added NT server mode and NT server host args

This commit is contained in:
Banks Troutman
2019-10-01 02:19:32 -04:00
parent 507592735c
commit b87d31e465
2 changed files with 105 additions and 35 deletions

View File

@@ -0,0 +1,11 @@
package com.chameleonvision.util;
public class Utilities {
private Utilities() {}
public static boolean isValidIPV4(final String ip) {
String PATTERN = "^((0|1\\d?\\d?|2[0-4]?\\d?|25[0-5]?|[3-9]\\d?)\\.){3}(0|1\\d?\\d?|2[0-4]?\\d?|25[0-5]?|[3-9]\\d?)$";
return ip.matches(PATTERN);
}
}