Browse Source

Add gfwlist.acl

pull/814/head
Max Lv 8 years ago
parent
commit
02c51c3615
2 changed files with 3997 additions and 0 deletions
  1. 3992
      acl/gfwlist.acl
  2. 5
      src/acl.c

3992
acl/gfwlist.acl
File diff suppressed because it is too large
View File

5
src/acl.c

@ -90,6 +90,11 @@ int init_acl(const char *path)
line[len - 1] = '\0'; line[len - 1] = '\0';
} }
// Skip comments
if (line[0] == '#') {
continue;
}
if (strcmp(line, "[black_list]") == 0 if (strcmp(line, "[black_list]") == 0
|| strcmp(line, "[bypass_list]") == 0) { || strcmp(line, "[bypass_list]") == 0) {
list_ipv4 = &black_list_ipv4; list_ipv4 = &black_list_ipv4;

Loading…
Cancel
Save