Added support for no-routes (X-Split-Exclude)

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-06 14:05:10 +01:00
parent 5f34edaf31
commit bcea928abe
15 changed files with 150 additions and 52 deletions
+3
View File
@@ -59,6 +59,7 @@ struct cfg_options {
static struct cfg_options available_options[] = {
{ .name = "auth", .type = OPTION_MULTI_LINE, .mandatory = 1 },
{ .name = "route", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "no-route", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "select-group", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "custom-header", .type = OPTION_MULTI_LINE, .mandatory = 0 },
{ .name = "split-dns", .type = OPTION_MULTI_LINE, .mandatory = 0 },
@@ -723,6 +724,8 @@ unsigned force_cert_auth;
}
}
READ_MULTI_LINE("no-route", config->network.no_routes, config->network.no_routes_size);
READ_STRING("default-select-group", config->default_select_group);
READ_TF("auto-select-group", auto_select_group, 0);
if (auto_select_group != 0 && amod != NULL && amod->group_list != NULL) {