提交 a9fc7825 编写于 作者: D Dmitry Kozlov

ipoe: check connlimit for UP sessions

上级 aa25b898
......@@ -1805,6 +1805,9 @@ static struct ipoe_session *ipoe_session_create_up(struct ipoe_serv *serv, struc
if (ap_shutdown)
return NULL;
if (connlimit_loaded && connlimit_check(cl_key_from_ipv4(saddr)))
return NULL;
if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting >= conf_max_sessions)
return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册