mirror of
https://github.com/3proxy/3proxy.git
synced 2025-04-21 19:52:08 +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;
|
char *err;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ul = 0;
|
unsigned long ul = 0;
|
||||||
ioctlsocket(param->clisock, FIONBIO, &ul);
|
ioctlsocket(param->clisock, FIONBIO, &ul);
|
||||||
#else
|
#else
|
||||||
fcntl(param->clisock,F_SETFL,0);
|
fcntl(param->clisock,F_SETFL,0);
|
||||||
@ -489,8 +489,10 @@ static FILTER_ACTION ssl_filter_client(void *fo, struct clientparam * param, voi
|
|||||||
return REJECT;
|
return REJECT;
|
||||||
}
|
}
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ul = 1;
|
{
|
||||||
ioctlsocket(param->clisock, FIONBIO, &ul);
|
unsigned long ul = 1;
|
||||||
|
ioctlsocket(param->clisock, FIONBIO, &ul);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
fcntl(param->clisock,F_SETFL,O_NONBLOCK);
|
fcntl(param->clisock,F_SETFL,O_NONBLOCK);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user