mirror of
https://github.com/3proxy/3proxy.git
synced 2025-04-09 22:13:11 +08:00
Fix ssl_plugin for Windows
This commit is contained in:
parent
878025598b
commit
74134db09e
@ -475,7 +475,7 @@ static FILTER_ACTION ssl_filter_client(void *fo, struct clientparam * param, voi
|
||||
char *err;
|
||||
|
||||
#ifdef _WIN32
|
||||
ul = 0;
|
||||
unsigned long ul = 0;
|
||||
ioctlsocket(param->clisock, FIONBIO, &ul);
|
||||
#else
|
||||
fcntl(param->clisock,F_SETFL,0);
|
||||
@ -489,8 +489,10 @@ static FILTER_ACTION ssl_filter_client(void *fo, struct clientparam * param, voi
|
||||
return REJECT;
|
||||
}
|
||||
#ifdef _WIN32
|
||||
ul = 1;
|
||||
ioctlsocket(param->clisock, FIONBIO, &ul);
|
||||
{
|
||||
unsigned long ul = 1;
|
||||
ioctlsocket(param->clisock, FIONBIO, &ul);
|
||||
}
|
||||
#else
|
||||
fcntl(param->clisock,F_SETFL,O_NONBLOCK);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user