Corrected ACLs handling + network ranges in ACLS

ACL handling corrected (affected all ACL-based operations like
allow/deny/banlimin/etc).
Network ranges like
10.0.0.0-10.0.0.1.64
are winally supported in ACLS.
This commit is contained in:
z3APA3A committed 2014-12-13 19:48:41 +03:00
1 parent 042fc2afde
commit e39f4638cf
4 files changed
+19 -14

No files matched your search

+1 -1
View File
@@ -224,7 +224,7 @@ int parsehostname(char *hostname, struct clientparam *param, unsigned short port
if(se){
*se = 0;
}
if(hostname != param->hostname){
if(hostname != (char *)param->hostname){
if(param->hostname) myfree(param->hostname);
param->hostname = (unsigned char *)mystrdup(hostname + (se!=0));
}