summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-18 12:22:38 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-18 13:25:08 +0200
commit3a81e26a23b5e1b372bfa15c63dbc725a2f448ed (patch)
tree026c0cdc5fc4e7768e8a9c8c90fe0bccf30e318e /data
parentcda566dfde944f705244f0b9a9293d1a47c55a50 (diff)
downloadvyos-1x-3a81e26a23b5e1b372bfa15c63dbc725a2f448ed.tar.gz
vyos-1x-3a81e26a23b5e1b372bfa15c63dbc725a2f448ed.zip
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.
Diffstat (limited to 'data')
-rw-r--r--data/templates/pppoe-server/pppoe.config.tmpl6
1 files changed, 6 insertions, 0 deletions
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