From 434beee55bfebd493b3d89eaf18c740454319051 Mon Sep 17 00:00:00 2001 From: Erol Guven Date: Wed, 8 Jun 2016 11:55:10 -0400 Subject: [PATCH] fix the _CONN_IPv4_NUM_ONLY regular expression This addresses the issue https://github.com/mysql/mysql-utilities/issues/9 --- mysql/utilities/common/ip_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql/utilities/common/ip_parser.py b/mysql/utilities/common/ip_parser.py index e3385f6..e4e4bd5 100644 --- a/mysql/utilities/common/ip_parser.py +++ b/mysql/utilities/common/ip_parser.py @@ -112,7 +112,7 @@ _CONN_IPv4_NUM_ONLY = re.compile( r"""( (?: # start of the IPv4 1st group - 25[0-4] # this match numbers 250 to 254 + 25[0-5] # this match numbers 250 to 255 | # or 2[0-4]\d # this match numbers from 200 to 249 | # or @@ -123,7 +123,7 @@ (?: # start of the 3 next groups \. # the prefix '.' like in '.255' (?: - 25[0-4]|2[0-4]\d|1\d\d|[1-9]?\d + 25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d # same group as before ) )