mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
fixed: use SASIZE() instead of sizeof() in connect() for FreeBSD compatibility
This commit is contained in:
1 parent
7a7cd9bc25
commit
fec0da52af
5 files changed
+8
-9
No files matched your search
+1
-1
@@ -530,7 +530,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
new_sock=so._socket(SASOCK(&defparam.sincr), SOCK_STREAM, IPPROTO_TCP);
|
||||
if(new_sock != INVALID_SOCKET){
|
||||
parsehost(srv.family, cbc_string, (struct sockaddr *)&defparam.sincr);
|
||||
if(so._connect(new_sock,(struct sockaddr *)&defparam.sincr,sizeof(defparam.sincr))) {
|
||||
if(so._connect(new_sock,(struct sockaddr *)&defparam.sincr,SASIZE(&defparam.sincr))) {
|
||||
so._closesocket(new_sock);
|
||||
new_sock = INVALID_SOCKET;
|
||||
usleep(SLEEPTIME);
|
||||
|
||||
Reference in new issue
Block a user