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

ipoe: check connlimit for UP sessions

上级 1f8763d7
......@@ -1897,6 +1897,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.
先完成此消息的编辑!
想要评论请 注册