intport removed, SA macro added

This commit is contained in:
Vladimir Dubrovin committed 2014-05-12 01:10:47 +04:00
1 parent bc7ca3af09
commit 7897b009a1
8 files changed
+94 -70

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(param->srv->intsa.ss_family == AF_INET && ip == ((struct sockaddr_in *)&param->srv->intsa)->sin_addr.s_addr){
if(*SAFAMILY(&param->srv->intsa) == AF_INET && ip == *(unsigned long*)SAADDR(&param->srv->intsa)){
buf[2] = 0x85;
buf[3] = 0x80;
buf[6] = 0;