From 3a81e26a23b5e1b372bfa15c63dbc725a2f448ed Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 18 Apr 2020 12:22:38 +0200 Subject: pppoe-server: T2313: bugfix Floating Point Exception When only defining a timeout limit the generated config will look like: [connlimit] limit= burst= timeout=5 This will trigger a "Floating point exception" on startup of Accel-PPP and it can be re-surrected anymore until service is completely deleted and re-added. --- data/templates/pppoe-server/pppoe.config.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/templates/pppoe-server/pppoe.config.tmpl b/data/templates/pppoe-server/pppoe.config.tmpl index 66c8c37ac..8bc6b5f4b 100644 --- a/data/templates/pppoe-server/pppoe.config.tmpl +++ b/data/templates/pppoe-server/pppoe.config.tmpl @@ -188,10 +188,16 @@ pado-delay={{ pado_delay }} {% if limits_burst or limits_connections or limits_connections %} [connlimit] +{% if limits_connections %} limit={{ limits_connections }} +{% endif %} +{% if limits_burst %} burst={{ limits_burst }} +{% endif %} +{% if limits_timeout %} timeout={{ limits_timeout }} {% endif %} +{% endif %} [cli] tcp=127.0.0.1:2001 -- cgit v1.2.3