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.pull/1202/head
parent
0de89bad82
commit
f5b412b4c8
Loading…
Reference in New Issue