Fixes for NOIPV6

Fixes to compile without IPv6 support
This commit is contained in:
z3APA3A committed 2014-11-09 21:59:58 +03:00
1 parent 278955deef
commit b5bcb44e27
6 files changed
+41 -15

No files matched your search

+4
View File
@@ -579,7 +579,11 @@ void srvinit2(struct srvparam * srv, struct clientparam *param){
}
if(srv->logtarget) srv->logtarget = (unsigned char *)mystrdup((char *)srv->logtarget);
memcpy(&param->sincr, &srv->intsa, sizeof(param->sincr));
#ifndef NOIPV6
memcpy(&param->sinsr, (srv->family == 6 || srv->family == 64)? (void *)&srv->extsa6: (void *)&srv->extsa, sizeof(param->sinsl));
#else
memcpy(&param->sinsr, &srv->extsa, sizeof(param->sinsl));
#endif
}
void srvfree(struct srvparam * srv){