mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Fixes for NOIPV6
Fixes to compile without IPv6 support
This commit is contained in:
1 parent
278955deef
commit
b5bcb44e27
6 files changed
+41
-15
No files matched your search
@@ -579,7 +579,11 @@ void srvinit2(struct srvparam * srv, struct clientparam *param){
|
||||
}
|
||||
if(srv->logtarget) srv->logtarget = (unsigned char *)mystrdup((char *)srv->logtarget);
|
||||
memcpy(¶m->sincr, &srv->intsa, sizeof(param->sincr));
|
||||
#ifndef NOIPV6
|
||||
memcpy(¶m->sinsr, (srv->family == 6 || srv->family == 64)? (void *)&srv->extsa6: (void *)&srv->extsa, sizeof(param->sinsl));
|
||||
#else
|
||||
memcpy(¶m->sinsr, &srv->extsa, sizeof(param->sinsl));
|
||||
#endif
|
||||
}
|
||||
|
||||
void srvfree(struct srvparam * srv){
|
||||
|
||||
Reference in new issue
Block a user