diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-04-18 21:21:37 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-04-18 21:21:37 +0300 |
commit | bf4fabd6c50a34d4223bdc78be9e852720f71bba (patch) | |
tree | 7ebb75e44f5d1a338aa1fe1a0171d5c7ddc9e61c /accel-pppd/ctrl/pptp | |
parent | 88a908974b0b2e9c7eee8ad9a8b0b4432e95d167 (diff) | |
download | accel-ppp-bf4fabd6c50a34d4223bdc78be9e852720f71bba.tar.gz accel-ppp-bf4fabd6c50a34d4223bdc78be9e852720f71bba.zip |
Revert "implemented session count limiting"
This reverts commit 88a908974b0b2e9c7eee8ad9a8b0b4432e95d167.
Diffstat (limited to 'accel-pppd/ctrl/pptp')
-rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index c8731ca7..4aba5767 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -648,14 +648,9 @@ static int pptp_connect(struct triton_md_handler_t *h) continue; } - if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting > conf_max_sessions) { - close(sock); - continue; - } - if (triton_module_loaded("connlimit") && connlimit_check(cl_key_from_ipv4(addr.sin_addr.s_addr))) { close(sock); - continue; + return 0; } log_info2("pptp: new connection from %s\n", inet_ntoa(addr.sin_addr)); |