View | Details | Raw Unified | Return to bug 249146
Collapse All | Expand All

(-)mail/pflogsumm/Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	pflogsumm
4
PORTNAME=	pflogsumm
5
PORTVERSION=	1.1.5
5
PORTVERSION=	1.1.5
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	mail
8
CATEGORIES=	mail
8
MASTER_SITES=	http://jimsun.LinxNet.com/downloads/ \
9
MASTER_SITES=	http://jimsun.LinxNet.com/downloads/ \
(-)mail/pflogsumm/files/patch-pflogsumm.pl (+11 lines)
Line 0 Link Here
1
--- pflogsumm.pl.orig	2020-09-06 10:15:06.176055000 +0200
2
+++ pflogsumm.pl	2020-09-06 10:15:43.839326000 +0200
3
@@ -1536,7 +1536,7 @@
4
     # split domain/ipaddr into separates
5
     # newer versions of Postfix have them "dom.ain[i.p.add.ress]"
6
     # older versions of Postfix have them "dom.ain/i.p.add.ress"
7
-    unless((($domain, $ipAddr) = /^([^\[]+)\[((?:\d{1,3}\.){3}\d{1,3})\]/) == 2 ||
8
+    unless((($domain, $ipAddr) = /^([^\[]+)\[((?:\d{1,3}\.){3}\d{1,3}|[0-9a-f:]+)\]/o) == 2 ||
9
            (($domain, $ipAddr) = /^([^\/]+)\/([0-9a-f.:]+)/i) == 2) {
10
 	# more exhaustive method
11
         ($domain, $ipAddr) = /^([^\[\(\/]+)[\[\(\/]([^\]\)]+)[\]\)]?:?\s*$/;

Return to bug 249146