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:
Nikos Mavrogiannopoulos
2014-02-01 14:50:52 +01:00
parent 5c49678568
commit 0ec67882c0
20 changed files with 204 additions and 195 deletions
+6 -2
View File
@@ -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);