0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00

Added ProfileParseLimits::MAX_SERVER_LIST_SIZE and raise limit to 4096

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2018-02-06 14:10:58 -07:00 committed by Antonio Quartulli
parent eedee4fa6d
commit 05880b136b
No known key found for this signature in database
GPG Key ID: 07A53C580EF2CD74
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ namespace openvpn {
MAX_DIRECTIVE_SIZE=64, // maximum number of chars in an OpenVPN directive
OPT_OVERHEAD=64, // bytes overhead of one option/directive, for accounting purposes
TERM_OVERHEAD=16, // bytes overhead of one argument in an option, for accounting purposes
MAX_SERVER_LIST_SIZE=4096, // maximum server list size, i.e. "setenv SERVER ..."
};
}
}

View File

@ -77,7 +77,7 @@ namespace openvpn {
reset_pod();
// limits
const size_t max_server_list_size = 64;
const size_t max_server_list_size = ProfileParseLimits::MAX_SERVER_LIST_SIZE;
// setenv UV_x
PeerInfo::Set::Ptr peer_info_uv(new PeerInfo::Set);