intip changed to intsa

intip changed to intsa for IPv6 use
This commit is contained in:
Vladimir Dubrovin committed 2014-05-12 01:10:42 +04:00
1 parent cce3a94f04
commit bc7ca3af09
9 files changed
+35 -19

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ void * dnsprchild(struct clientparam* param) {
unsigned a, b, c, d;
sscanf(host, "%u.%u.%u.%u", &a, &b, &c, &d);
ip = htonl((d<<24) ^ (c<<16) ^ (b<<8) ^ a);
if(ip == param->srv->intip){
if(param->srv->intsa.ss_family == AF_INET && ip == ((struct sockaddr_in *)&param->srv->intsa)->sin_addr.s_addr){
buf[2] = 0x85;
buf[3] = 0x80;
buf[6] = 0;