Skip to content

Commit

Permalink
Fix wrong ipv6 local url detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Elehiggle committed Jul 19, 2024
1 parent 5fdfc29 commit 5ab9237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
logger.setLevel(log_level)

REGEX_LOCAL_LINKS = re.compile(
r"(?:^|\b)(127\.|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|::1|[fF][cCdD]00::|\blocalhost\b)(?:$|\b)",
r"(?:^|\b)(127\.|192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.|[fF][cCdD]00::|\blocalhost\b)(?:$|\b)",
re.IGNORECASE,
)

Expand Down

0 comments on commit 5ab9237

Please sign in to comment.