mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
Fail IPv6 client in dnsauth
before IPv6 for dnsauth is implemented
This commit is contained in:
parent
e39f4638cf
commit
d2437975b7
@ -736,8 +736,12 @@ int userauth(struct clientparam * param){
|
||||
|
||||
int dnsauth(struct clientparam * param){
|
||||
char buf[32];
|
||||
|
||||
/* FIX IT */
|
||||
unsigned u = ntohl(*(unsigned long *)SAADDR(¶m->sincr));
|
||||
unsigned u ;
|
||||
|
||||
if(*SAFAMILY(¶m->sincr)!=AF_INET) return 6;
|
||||
u = ntohl(*(unsigned long *)SAADDR(¶m->sincr));
|
||||
|
||||
sprintf(buf, "%u.%u.%u.%u.in-addr.arpa",
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user