re-authenticate connection on configuration change

This commit is contained in:
z3APA3A committed 2016-03-28 17:57:37 +03:00
1 parent eeb2d78fb1
commit 938b1d1aab
4 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ int sockmap(struct clientparam * param, int timeo){
while (!stop&&!conf.timetoexit){
sasize = sizeof(struct sockaddr_in);
if(param->version != conf.version){
if(param->version < conf.version){
if (res = (*param->srv->authfunc)(param)) {return(res);}
param->paused = conf.paused;
param->version = conf.version;