now using maxconnect from ppp_settings

This commit is contained in:
Sylvain Rochet
2012-06-07 23:34:06 +02:00
parent 2e6fa7f8a3
commit d27da93c33
3 changed files with 3 additions and 6 deletions

View File

@@ -1227,8 +1227,8 @@ np_up(unit, proto)
* Set a timeout to close the connection once the maximum
* connect time has expired.
*/
if (maxconnect > 0)
TIMEOUT(connect_time_expired, 0, maxconnect);
if (ppp_settings.maxconnect > 0)
TIMEOUT(connect_time_expired, 0, ppp_settings.maxconnect);
#ifdef MAXOCTETS
if (maxoctets > 0)