summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorxebd <xeb@mail.ru>2022-04-21 10:32:17 +0300
committerGitHub <noreply@github.com>2022-04-21 10:32:17 +0300
commit27c90ac33294146bd061c74a0e38e2506646b090 (patch)
tree79f61952d557da810ff8b4248275a7be313dceda /accel-pppd
parent694bd310f023bb5e1774acd5bb145e942f6340ba (diff)
parent2c1250a9185bca63914d0f4da42398240eda5d04 (diff)
downloadaccel-ppp-27c90ac33294146bd061c74a0e38e2506646b090.tar.gz
accel-ppp-27c90ac33294146bd061c74a0e38e2506646b090.zip
Merge pull request #34 from DaniilHarun/T22
T22: connection limit for non-shared interfaces by interface index
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index dbc3f19f..b6ca46c4 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -2081,7 +2081,7 @@ static struct ipoe_session *ipoe_session_create_up(struct ipoe_serv *serv, struc
if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting >= conf_max_sessions)
return NULL;
- if (connlimit_loaded && connlimit_check(cl_key_from_ipv4(saddr)))
+ if (connlimit_loaded && connlimit_check(serv->opt_shared ? cl_key_from_ipv4(saddr) : serv->ifindex))
return NULL;
if (l4_redirect_list_check(saddr))