mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add hyphenated IP address to log filter
This commit is contained in:
parent
fabb52763b
commit
2d0a97f259
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class PublicIPFilter(RegexFilter):
|
||||||
super(PublicIPFilter, self).__init__()
|
super(PublicIPFilter, self).__init__()
|
||||||
|
|
||||||
# Currently only checking for ipv4 addresses
|
# Currently only checking for ipv4 addresses
|
||||||
self.regex = re.compile(r'[0-9]+(?:\.[0-9]+){3}(?!\d*-[a-z0-9]{6})')
|
self.regex = re.compile(r'[0-9]+(?:[.-][0-9]+){3}(?!\d*-[a-z0-9]{6})')
|
||||||
|
|
||||||
def replace(self, text, ip):
|
def replace(self, text, ip):
|
||||||
if helpers.is_public_ip(ip):
|
if helpers.is_public_ip(ip):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue