mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
Do not fail connection with 333 error on configuration reload
This commit is contained in:
parent
8b1c12005f
commit
cfa4d11027
@ -558,7 +558,6 @@ int alwaysauth(struct clientparam * param){
|
|||||||
|
|
||||||
res = doconnect(param);
|
res = doconnect(param);
|
||||||
if(!res){
|
if(!res){
|
||||||
if(param->srv->paused != conf.paused) return 333;
|
|
||||||
initbandlims(param);
|
initbandlims(param);
|
||||||
for(tc = conf.trafcounter; tc; tc = tc->next) {
|
for(tc = conf.trafcounter; tc; tc = tc->next) {
|
||||||
if(tc->disabled) continue;
|
if(tc->disabled) continue;
|
||||||
|
@ -69,7 +69,7 @@ int sockmap(struct clientparam * param, int timeo){
|
|||||||
while (!stop&&!conf.timetoexit){
|
while (!stop&&!conf.timetoexit){
|
||||||
sasize = sizeof(struct sockaddr_in);
|
sasize = sizeof(struct sockaddr_in);
|
||||||
if(param->version < conf.version){
|
if(param->version < conf.version){
|
||||||
if((res = (*param->srv->authfunc)(param)) && !param->srv->noforce) {return(res);}
|
if((res = (*param->srv->authfunc)(param)) && res != 2 && !param->srv->noforce) {return(res);}
|
||||||
param->paused = conf.paused;
|
param->paused = conf.paused;
|
||||||
param->version = conf.version;
|
param->version = conf.version;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user