mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
The route configuration directive accepts the keyword 'default'
In that case it will return a default route irrespective of any other route directives. That allows overriding existing routes with a default route for specific users and groups.
This commit is contained in:
@@ -212,6 +212,7 @@ typedef struct worker_st {
|
||||
|
||||
/* information on the tun device addresses and network */
|
||||
struct vpn_st vinfo;
|
||||
unsigned default_route;
|
||||
|
||||
/* additional data - received per user or per group */
|
||||
unsigned routes_size;
|
||||
@@ -253,6 +254,7 @@ void __attribute__ ((format(printf, 3, 4)))
|
||||
|
||||
int complete_vpn_info(worker_st * ws,
|
||||
struct vpn_st* vinfo);
|
||||
unsigned check_if_default_route(char **routes, unsigned routes_size);
|
||||
|
||||
int send_tun_mtu(worker_st *ws, unsigned int mtu);
|
||||
int handle_worker_commands(struct worker_st *ws);
|
||||
|
||||
Reference in New Issue
Block a user