acceidentally missed from earlier commit

This commit is contained in:
rfm 2024-02-13 15:04:23 +00:00
parent 88e43d73a6
commit 90e0460466

View file

@ -813,9 +813,11 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
[self setNonBlocking: YES];
if (connect(net, &sin, GSPrivateSockaddrLength(&sin)) == -1)
{
if (!GSWOULDBLOCK)
long eno = GSNETERROR;
if (!GSWOULDBLOCK(eno))
{
NSError *e = [NSError _last];
NSError *e = [NSError _systemError: eno];
NSLog(@"unable to make socket connection to %@ - %@ (%d)",
GSPrivateSockaddrName(&sin), e, (int)[e code]);