mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Added support for multiple DNS and NBNS servers.
This patch also combines ipv4-dns and ipv6-dns options that are now handled as aliases to dns. A side-effect of this patch is that the local keyword is no longer supported.
This commit is contained in:
+6
-2
@@ -112,6 +112,8 @@ typedef struct worker_st {
|
||||
gnutls_session_t session;
|
||||
gnutls_session_t dtls_session;
|
||||
|
||||
struct http_req_st req;
|
||||
|
||||
/* inique session identifier */
|
||||
uint8_t sid[SID_SIZE];
|
||||
|
||||
@@ -164,8 +166,10 @@ typedef struct worker_st {
|
||||
/* additional data - received per user or per group */
|
||||
unsigned routes_size;
|
||||
char* routes[MAX_ROUTES];
|
||||
|
||||
struct http_req_st req;
|
||||
unsigned dns_size;
|
||||
char* dns[MAX_ROUTES];
|
||||
unsigned nbns_size;
|
||||
char* nbns[MAX_ROUTES];
|
||||
} worker_st;
|
||||
|
||||
void vpn_server(struct worker_st* ws);
|
||||
|
||||
Reference in New Issue
Block a user