Closed MrgSub closed 3 years ago
Hi @MrgSub,
Thank you for the PR!
Even though it seems to work, wouldn't it be wiser to patch is-ip
module instead?
Hi @frenchbread Both valid options as I didn't find proper cases where this fails! Please do let me know if you come across any.
is-ip
is using Regex expressions that are from another packages ip-regex
so we'll need to patch that.
@MrgSub,
I can confirm that is-ip
module rejects ip addresses with leading zeros. And your solution solves that issue but breaks some ipv6 tests for some reason.
I suggest that we open an issue on ip-regex
.
It appears that another PR (#7) resolving this issue has been opened.
@MrgSub let me know if that works for you.
Closing this since the issue has been resolved.
After doing my research, it appears that the IP
127.0.0.01
is getting rejected by isIp packageAfter the below change,
127.0.0.1
and127.0.0.01
both returningtrue
as private IPs