summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2019-05-13 11:55:35 +0300
committerDmitry Kozlov <xeb@mail.ru>2019-05-13 11:55:35 +0300
commitaa7ac3a3c580a0840573e628dc03396b9521d0e5 (patch)
treec196133db937a8aa4ea8d0fba01c123af68e66a1
parent2b00ef2f1f6ad759b69e8d732e790a9959730a8b (diff)
downloadaccel-ppp-aa7ac3a3c580a0840573e628dc03396b9521d0e5.tar.gz
accel-ppp-aa7ac3a3c580a0840573e628dc03396b9521d0e5.zip
ipoe: restored max-lease-time functionality
-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 6620b401..5438b613 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_timeout > ses->lease_time ? conf_lease_timeout : ses->lease_time;
if (ses->timer.tpd)
triton_timer_mod(&ses->timer, 0);
}