private-ip
private-ip copied to clipboard
Performance issues
The usage of ip_regex.v6().test(ip) on every invocation as well as this massive conditional (with the same regex re-used over and over, as opposed to defining as constants in-memory at top root level of file, cause major performance issues.
Also see the PR we made at https://github.com/frenchbread/private-ip/pull/27
In the interim, we've dropped private-ip usage completely because of this and instead we use localhost-url-regex