Skip to content
Snippets Groups Projects
Unverified Commit f5b412b4 authored by Martin Packman's avatar Martin Packman Committed by GitHub
Browse files

Fix IPv6 localhost detection in tracker script (#1200)

IPv6 literals in url hostnames follow RFC 2732 so are enclosed in
brackets.

Browsers normalise so matching zeros is not required.

Allow `::` unspecified address as well as `::1`  loopback address.

Non-capturing groups not required when using `/.../.test()` method.
parent 0de89bad
Branches dev/config
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment