Improved detection of local IPs

Change by Marcus G. Daniels
Merge branch 'master' of github.com:gjedeer/paranoia