mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-26 23:59:41 +08:00
Use configured timeouts for DNS operations instead static ones
This commit is contained in:
1 parent
e59ccd22b1
commit
fcbccf39ef
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -158,7 +158,7 @@ void * dnsprchild(struct clientparam* param) {
|
||||
}
|
||||
param->statscli64 += i;
|
||||
param->nwrites++;
|
||||
len = sockrecvfrom(param->remsock, (struct sockaddr *)¶m->sinsr, buf, BUFSIZE, 15000);
|
||||
len = sockrecvfrom(param->remsock, (struct sockaddr *)¶m->sinsr, buf, BUFSIZE, conf.timeouts[DNS_TO]*1000);
|
||||
if(len <= 13) {
|
||||
RETURN(821);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user