[core] Fix internal IPv4 detection (related to #37) 

This commit fix the regex used against IPs (v4) in order to detect internal ones according to the rfc1918.

Update from #182 as asked by @tunnelshade