You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.private-ip/src/index.ts
Lines 45 to 57 in 9d984ed
Also see the PR we made at #27
In the interim, we've dropped
private-ip
usage completely because of this and instead we uselocalhost-url-regex
The text was updated successfully, but these errors were encountered: