mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fail IPv6 client in dnsauth
before IPv6 for dnsauth is implemented
This commit is contained in:
1 parent
e39f4638cf
commit
d2437975b7
1 file changed
+5
-1
+5
-1
@@ -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",
|
||||
|
||||
|
||||
Reference in new issue
Block a user