mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Support for 'extip' and 'smtp' parent types added
This commit is contained in:
1 parent
9db88313c7
commit
3cc9796583
5 files changed
+18
-13
No files matched your search
+6
-5
@@ -241,7 +241,10 @@ int handleredirect(struct clientparam * param, struct ace * acentry){
|
||||
r2 = (myrand(param, sizeof(struct clientparam))%1000);
|
||||
}
|
||||
if(!connected){
|
||||
if(SAISNULL(&cur->addr) && !*SAPORT(&cur->addr)){
|
||||
if(cur->type == R_EXTIP){
|
||||
memcpy(¶m->sinsl, &cur->addr, sizeof(cur->addr));
|
||||
}
|
||||
else if(SAISNULL(&cur->addr) && !*SAPORT(&cur->addr)){
|
||||
if(cur->extuser){
|
||||
if(param->extusername)
|
||||
myfree(param->extusername);
|
||||
@@ -266,11 +269,9 @@ int handleredirect(struct clientparam * param, struct ace * acentry){
|
||||
case R_ICQ:
|
||||
param->redirectfunc = icqprchild;
|
||||
break;
|
||||
/*
|
||||
case R_MSN:
|
||||
param->redirectfunc = msnprchild;
|
||||
case R_SMTP:
|
||||
param->redirectfunc = smtppchild;
|
||||
break;
|
||||
*/
|
||||
default:
|
||||
param->redirectfunc = proxychild;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user