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:
parent
eedee4fa6d
commit
05880b136b
@ -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 ..."
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user