PULL REQ: Better check for socket local connection


#1

I attach a pull request which should improve checking for socket->isLocal().

Currently connecting to “localhost”, the hostname or any local IP address all report isLocal == false. I have tested this on CentOS, macOS and Win10.


#2

I’ve implemented something similar on JUCE’s develop branch. Does this work for you?


#3

Hi Fabian,

I have just done a bit of simple testing and it works for all the cases I have though of. Small and neat too. Hopefully we will see some more IPv6 soon and inet_ntop. Thanks for that.

H