diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2019-05-13 11:50:58 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2019-05-13 11:50:58 +0300 |
commit | 6f433706a152ea987899fd830ff399e257b0f2a6 (patch) | |
tree | 4f678f0a301c0884e128216d36813e3fc721f082 /accel-pppd/ctrl/ipoe/ipoe.c | |
parent | 389a77c295562ce6c349a8977c0658064ef4f9e5 (diff) | |
download | accel-ppp-6f433706a152ea987899fd830ff399e257b0f2a6.tar.gz accel-ppp-6f433706a152ea987899fd830ff399e257b0f2a6.zip |
ipoe: restored max-lease-time functionality
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index b8082a6..5b44622 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1002,7 +1002,7 @@ static void __ipoe_session_activate(struct ipoe_session *ses) ses->timer.expire = ipoe_session_timeout; ses->timer.period = 0; - ses->timer.expire_tv.tv_sec = ses->lease_time; + ses->timer.expire_tv.tv_sec = conf_lease_time > ses->lease_time ? conf_lease_time : ses->lease_time; if (ses->timer.tpd) triton_timer_mod(&ses->timer, 0); } |