From a144fde0e438bed921718b512d5c6da1fa8c83dd Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 25 Jun 2014 10:05:34 +0200 Subject: [PATCH] Eliminated the MAX_ROUTES requirement. --- src/main-auth.c | 5 ----- src/vpn.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/main-auth.c b/src/main-auth.c index 38282b22..be725692 100644 --- a/src/main-auth.c +++ b/src/main-auth.c @@ -52,11 +52,6 @@ int send_cookie_auth_reply(main_server_st* s, struct proc_st* proc, unsigned i; int ret; - if (proc->config.routes_size > MAX_ROUTES) { - mslog(s, proc, LOG_INFO, "note that the routes sent to the client (%d) exceed the maximum allowed (%d). Truncating.", (int)proc->config.routes_size, (int)MAX_ROUTES); - proc->config.routes_size = MAX_ROUTES; - } - if (r == AUTH__REP__OK && proc->tun_lease.name[0] != 0) { char ipv6[MAX_IP_STR]; char ipv4[MAX_IP_STR]; diff --git a/src/vpn.h b/src/vpn.h index 2390ec42..5295be5c 100644 --- a/src/vpn.h +++ b/src/vpn.h @@ -297,8 +297,6 @@ struct main_server_st; #define MAX_CONFIG_ENTRIES 64 -#define MAX_ROUTES 32 - #include char *human_addr2(const struct sockaddr *sa, socklen_t salen,