mirror of
https://github.com/bstansell/conserver.git
synced 2025-02-05 10:19:09 +00:00
Merge pull request #37 from wkz/master
fix host consoles in combination --with-ipv6
This commit is contained in:
commit
51ac2ace52
@ -931,10 +931,11 @@ ConsInit(CONSENT *pCE)
|
||||
# endif
|
||||
if (!SetFlags(cofile, O_NONBLOCK, 0))
|
||||
goto fail;
|
||||
if ((ret =
|
||||
connect(cofile, rp->ai_addr,
|
||||
rp->ai_addrlen)) == 0)
|
||||
goto success;
|
||||
|
||||
ret = connect(cofile, rp->ai_addr, rp->ai_addrlen);
|
||||
if (ret == 0 || errno == EINPROGRESS)
|
||||
goto success;
|
||||
|
||||
fail:
|
||||
close(cofile);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user