mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Update socks.c
This commit is contained in:
parent
7e681bbacd
commit
6d77141ecc
@ -305,6 +305,15 @@ fflush(stderr);
|
||||
param->res = 470;
|
||||
break;
|
||||
}
|
||||
{
|
||||
#ifdef _WIN32
|
||||
unsigned long ul=1;
|
||||
ioctlsocket(param->remsock, FIONBIO, &ul);
|
||||
#else
|
||||
fcntl(param->remsock,F_SETFL,O_NONBLOCK | fcntl(param->remsock,F_GETFL));
|
||||
#endif
|
||||
}
|
||||
|
||||
#if SOCKSTRACE > 0
|
||||
fprintf(stderr, "Sending incoming connection to client with code %d for %s with %hu\n",
|
||||
param->res,
|
||||
|
Loading…
Reference in New Issue
Block a user