mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
'if' is not required
This commit is contained in:
parent
fd29e887c3
commit
a8f8a4d624
@ -1166,10 +1166,7 @@ unsigned long udpresolve(int af, unsigned char * name, unsigned char * value, un
|
|||||||
ttl = ntohl(*(unsigned long *)(buf + k + 6));
|
ttl = ntohl(*(unsigned long *)(buf + k + 6));
|
||||||
memcpy(value, buf + k + 12, af == AF_INET6? 16:4);
|
memcpy(value, buf + k + 12, af == AF_INET6? 16:4);
|
||||||
if(ttl < 60 || ttl > (3600*12)) ttl = 300;
|
if(ttl < 60 || ttl > (3600*12)) ttl = 300;
|
||||||
if(ttl){
|
|
||||||
hashadd(af == AF_INET6?&dns6_table:&dns_table, name, value, conf.time+ttl);
|
hashadd(af == AF_INET6?&dns6_table:&dns_table, name, value, conf.time+ttl);
|
||||||
|
|
||||||
}
|
|
||||||
if(retttl) *retttl = ttl;
|
if(retttl) *retttl = ttl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user