Add access_list to the config struct instead of a global variable in acl.c.
Change insert_acl, check_acl and flush_access_list to take a corresponding argument. Michael
This commit is contained in:
1 parent
6266197e92
commit
8cb182e1b8
5 files changed
+20
-20
No files matched your search
+1
-1
@@ -1403,7 +1403,7 @@ void handle_connection (int fd)
|
||||
return;
|
||||
}
|
||||
|
||||
if (check_acl (peer_ipaddr, peer_string) <= 0) {
|
||||
if (check_acl (peer_ipaddr, peer_string, config.access_list) <= 0) {
|
||||
update_stats (STAT_DENIED);
|
||||
indicate_http_error (connptr, 403, "Access denied",
|
||||
"detail",
|
||||
|
||||
Reference in new issue
Block a user