mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Support socket options for connback sockets and connection timeouts
This commit is contained in:
1 parent
b8127257f9
commit
eb09ae7c58
8 files changed
+44
-28
No files matched your search
+1
-1
@@ -1154,7 +1154,7 @@ unsigned long udpresolve(int af, unsigned char * name, unsigned char * value, un
|
||||
*sinsr = nservers[i].addr;
|
||||
}
|
||||
if(usetcp){
|
||||
if(connectwithpoll(sock,(struct sockaddr *)sinsr,SASIZE(sinsr))) {
|
||||
if(connectwithpoll(sock,(struct sockaddr *)sinsr,SASIZE(sinsr),CONNECT_TO)) {
|
||||
so._shutdown(sock, SHUT_RDWR);
|
||||
so._closesocket(sock);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user