offbynull/portmapper

RegexUtils.findAllIpv4Addresses does not find gateway properly

Closed this issue · 6 comments

my gateway ip is 10.6.0.254 but expression matches 10.6.0.2

i find this regexp. this works fine for me. may be you can use it.

"(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}"

Hi. Thank you for the bug report.

I'll look in to this on the weekend and hopefully deploy a fixed version soon.

I've committed a change that should fix this. Please take a look if you have a moment to spare.

I'll publish a new version with this fix sometime this month.

Closing the ticket. This change won't be released until 2.0.

Re-opening as a reminder to test.

Tested and works.