mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
more changes for IPv6 client support
This commit is contained in:
1 parent
10bc0db2a8
commit
db5c4b1255
8 files changed
+90
-100
No files matched your search
+2
-2
@@ -195,7 +195,7 @@ int MODULEMAINFUNC (int argc, char** argv){
|
||||
break;
|
||||
case '4':
|
||||
case '6':
|
||||
srv.family = atoi(argv[i]);
|
||||
srv.family = atoi(argv[i]+1);
|
||||
break;
|
||||
case 'b':
|
||||
srv.bufsize = atoi(argv[i]+2);
|
||||
@@ -579,7 +579,7 @@ 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));
|
||||
memcpy(¶m->sinsl, &srv->extsa, sizeof(param->sinsl));
|
||||
memcpy(¶m->sinsr, (srv->family == 6 || srv->family == 64)? (void *)&srv->extsa6: (void *)&srv->extsa, sizeof(param->sinsl));
|
||||
}
|
||||
|
||||
void srvfree(struct srvparam * srv){
|
||||
|
||||
Reference in new issue
Block a user