Open a socket and compare source IP with destination in is_local_interface
This change fixes an issue where if /proc/sys/net/ipv4/ip_nonlocal_bind  is set to 1, remote
addresses where detected as local.
fixed whitespaces
added test for is_local_interface function
Merge pull request #492 from PrFalken/local-ip-patch

Open a socket and compare source IP with destination in is_local_interface