diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2020-03-07 03:57:03 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2020-03-07 03:57:03 +0500 |
commit | a76cfa750c2176b3156dcc65968aff8c90496de0 (patch) | |
tree | b763e8ae70ed64b9328404b21e987de7f83317b2 /accel-pppd/ctrl/pptp | |
parent | 20600ea832aef9fb03841f22d0ce37452915fa64 (diff) | |
download | accel-ppp-xebd-a76cfa750c2176b3156dcc65968aff8c90496de0.tar.gz accel-ppp-xebd-a76cfa750c2176b3156dcc65968aff8c90496de0.zip |
Revert "ipoe,pptp: introduced max-starting option (limit number of starting sessions)"
This reverts commit 02008c74a19c538ff7d9ce643c8cd4c738886196.
Diffstat (limited to 'accel-pppd/ctrl/pptp')
-rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 1161da5..fc5e83b 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -55,7 +55,6 @@ struct pptp_conn_t struct ppp_t ppp; }; -static int conf_max_starting; static int conf_ppp_max_mtu = PPTP_MAX_MTU; static int conf_timeout = 5; static int conf_echo_interval = 0; @@ -656,11 +655,6 @@ static int pptp_connect(struct triton_md_handler_t *h) close(sock); continue; } - if (conf_max_starting > 0 && stat_starting >= conf_max_starting) { - close(sock); - log_warn("pptp: Count of starting sessions > conf_max_starting, droping connection...\n"); - continue; - } if (triton_module_loaded("connlimit") && connlimit_check(cl_key_from_ipv4(addr.sin_addr.s_addr))) { close(sock); @@ -789,11 +783,6 @@ static void load_config(void) else conf_ppp_max_mtu = PPTP_MAX_MTU; - opt = conf_get_opt("pptp", "max-starting"); - if (opt) - conf_max_starting = atoi(opt); - else - conf_max_starting = 0; conf_mppe = MPPE_UNSET; opt = conf_get_opt("pptp", "mppe"); if (opt) { |