|
|
@ -272,9 +272,11 @@ public class ActivityDmarc extends ActivityBase {
|
|
|
|
ip = ip.toLowerCase(Locale.ROOT);
|
|
|
|
ip = ip.toLowerCase(Locale.ROOT);
|
|
|
|
if (ip.startsWith("ip4:") || ip.startsWith("ip6:")) {
|
|
|
|
if (ip.startsWith("ip4:") || ip.startsWith("ip6:")) {
|
|
|
|
String[] net = ip.substring(4).split("/");
|
|
|
|
String[] net = ip.substring(4).split("/");
|
|
|
|
if (net.length != 2)
|
|
|
|
if (net.length > 2)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
Integer prefix = Helper.parseInt(net[1]);
|
|
|
|
Integer prefix = ip.startsWith("ip4:") ? 32 : 128;
|
|
|
|
|
|
|
|
if (net.length == 2)
|
|
|
|
|
|
|
|
prefix = Helper.parseInt(net[1]);
|
|
|
|
if (prefix == null)
|
|
|
|
if (prefix == null)
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
if (ConnectionHelper.inSubnet(text, net[0], prefix)) {
|
|
|
|
if (ConnectionHelper.inSubnet(text, net[0], prefix)) {
|
|
|
|