From 5071bb1ed7b54169c61ef2f7415c8c410d0efa09 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 3 Jun 2019 16:49:25 +0100 Subject: Actually capture IP addresses in groups --- modules/ip_addresses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/ip_addresses.py b/modules/ip_addresses.py index 07f067fb..88bd9a56 100644 --- a/modules/ip_addresses.py +++ b/modules/ip_addresses.py @@ -6,7 +6,7 @@ from src import ModuleManager, utils URL_GEOIP = "http://ip-api.com/json/%s" REGEX_IPv6 = r"(?:(?:[a-f0-9]{1,4}:){2,}|[a-f0-9:]*::)[a-f0-9:]*" REGEX_IPv4 = r"(?:\d{1,3}\.){3}\d{1,3}" -REGEX_IP = re.compile("%s|%s" % (REGEX_IPv4, REGEX_IPv6), re.I) +REGEX_IP = re.compile("(%s)|(%s)" % (REGEX_IPv4, REGEX_IPv6), re.I) class Module(ModuleManager.BaseModule): @utils.hook("received.command.dns", min_args=1) -- cgit v1.3.1-10-gc9f91