fix month 'Dec' being detected as IPv6 address in ovpn python.d plugin (#4970)
vpnable committed
Dec 11, 2018 at 21:44 UTC
12cf7063074312a299450eeb20fef2e3a36a0d82
1 file changed
+1
-1
collectors/python.d.plugin/ovpn_status_log/ovpn_status_log.chart.py
+1
-1
@@ -26,7 +26,7 @@ CHARTS = {
26
}
27
}
28
29
-TLS_REGEX = r_compile(r'(?:[0-9a-f:]+|(?:\d{1,3}(?:\.\d{1,3}){3}(?::\d+)?)) (?P<bytes_in>\d+) (?P<bytes_out>\d+)')
29
+TLS_REGEX = r_compile(r'(?:[0-9a-f]+:[0-9a-f:]+|(?:\d{1,3}(?:\.\d{1,3}){3}(?::\d+)?)) (?P<bytes_in>\d+) (?P<bytes_out>\d+)')
30
STATIC_KEY_REGEX = r_compile(r'TCP/[A-Z]+ (?P<direction>(?:read|write)) bytes,(?P<bytes>\d+)')
31
32