PULL REQ: Better check for socket local connection

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.

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

1 Like

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