/** The list of connected clients. */
static struct list_head clients;
/** The whitelist/blacklist. */
/** The list of connected clients. */
static struct list_head clients;
/** The whitelist/blacklist. */
- list_for_each_entry_safe(ai, tmp, &access_perm_list, node)
+ list_for_each_entry_safe(ai, tmp, &http_acl, node)
- list_for_each_entry_safe(ai, tmp, &access_perm_list, node) {
+ list_for_each_entry_safe(ai, tmp, &http_acl, node) {
char *nad = para_strdup(inet_ntoa(ai->addr));
if (!strcmp(nad, inet_ntoa(scd->addr)) &&
ai->netmask == scd->netmask) {
char *nad = para_strdup(inet_ntoa(ai->addr));
if (!strcmp(nad, inet_ntoa(scd->addr)) &&
ai->netmask == scd->netmask) {
ai->netmask = scd->netmask;
PARA_INFO_LOG("adding %s/%i to access list\n", inet_ntoa(ai->addr),
ai->netmask);
ai->netmask = scd->netmask;
PARA_INFO_LOG("adding %s/%i to access list\n", inet_ntoa(ai->addr),
ai->netmask);
struct access_info *ai, *tmp_ai;
struct http_client *hc, *tmp_hc;
struct access_info *ai, *tmp_ai;
struct http_client *hc, *tmp_hc;
- list_for_each_entry_safe(ai, tmp_ai, &access_perm_list, node) {
+ list_for_each_entry_safe(ai, tmp_ai, &http_acl, node) {
char *tmp = make_message("%s%s/%d ", ap? ap : "",
inet_ntoa(ai->addr), ai->netmask);
free(ap);
char *tmp = make_message("%s%s/%d ", ap? ap : "",
inet_ntoa(ai->addr), ai->netmask);
free(ap);
for (i = 0; i < conf.http_access_given; i++) {
char *arg = para_strdup(conf.http_access_arg[i]);
char *p = strchr(arg, '/');
for (i = 0; i < conf.http_access_given; i++) {
char *arg = para_strdup(conf.http_access_arg[i]);
char *p = strchr(arg, '/');