Eliminated the MAX_ROUTES requirement.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-06-25 10:05:34 +02:00
parent 3e3e05f30a
commit a144fde0e4
2 changed files with 0 additions and 7 deletions

View File

@@ -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];

View File

@@ -297,8 +297,6 @@ struct main_server_st;
#define MAX_CONFIG_ENTRIES 64
#define MAX_ROUTES 32
#include <tun.h>
char *human_addr2(const struct sockaddr *sa, socklen_t salen,