mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Added support for no-routes (X-Split-Exclude)
This commit is contained in:
@@ -376,6 +376,14 @@ static int append_user_info(method_ctx *ctx,
|
||||
rep->n_routes = ctx->s->config->network.routes_size;
|
||||
}
|
||||
|
||||
if (ctmp->config.no_routes_size > 0) {
|
||||
rep->no_routes = ctmp->config.no_routes;
|
||||
rep->n_no_routes = ctmp->config.no_routes_size;
|
||||
} else {
|
||||
rep->no_routes = ctx->s->config->network.no_routes;
|
||||
rep->n_no_routes = ctx->s->config->network.no_routes_size;
|
||||
}
|
||||
|
||||
if (ctmp->config.iroutes_size > 0) {
|
||||
rep->iroutes = ctmp->config.iroutes;
|
||||
rep->n_iroutes = ctmp->config.iroutes_size;
|
||||
|
||||
Reference in New Issue
Block a user