Blame SOURCES/pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
|
8c23a1 |
diff --git pflogsumm-1.1.5/pflogsumm.pl pflogsumm-1.1.5/pflogsumm.pl
|
|
|
8c23a1 |
index 36384dd..eb527d0 100755
|
|
|
8c23a1 |
--- pflogsumm-1.1.5/pflogsumm.pl
|
|
|
8c23a1 |
+++ pflogsumm-1.1.5/pflogsumm.pl
|
|
|
8c23a1 |
@@ -1536,7 +1536,7 @@ sub gimme_domain {
|
|
|
8c23a1 |
# split domain/ipaddr into separates
|
|
|
8c23a1 |
# newer versions of Postfix have them "dom.ain[i.p.add.ress]"
|
|
|
8c23a1 |
# older versions of Postfix have them "dom.ain/i.p.add.ress"
|
|
|
8c23a1 |
- unless((($domain, $ipAddr) = /^([^\[]+)\[((?:\d{1,3}\.){3}\d{1,3})\]/) == 2 ||
|
|
|
8c23a1 |
+ unless((($domain, $ipAddr) = /^([^\[]+)\[((?:\d{1,3}\.){3}\d{1,3}|[0-9a-f:]+)\]/) == 2 ||
|
|
|
8c23a1 |
(($domain, $ipAddr) = /^([^\/]+)\/([0-9a-f.:]+)/i) == 2) {
|
|
|
8c23a1 |
# more exhaustive method
|
|
|
8c23a1 |
($domain, $ipAddr) = /^([^\[\(\/]+)[\[\(\/]([^\]\)]+)[\]\)]?:?\s*$/;
|