summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-27 19:39:16 +0200
committerGitHub <noreply@github.com>2020-04-27 19:39:16 +0200
commit0afd4e113a00394806b8d195cc8eba47928dbd31 (patch)
tree2f20a2efd624de512d6fa350bf9a2a6a0cc514d7 /data
parent536fd31f868a19ccbea72a637cb6b984fa368ce9 (diff)
parente7c5072b28e9d021a36228b3828f38d6e8da0320 (diff)
downloadvyos-1x-0afd4e113a00394806b8d195cc8eba47928dbd31.tar.gz
vyos-1x-0afd4e113a00394806b8d195cc8eba47928dbd31.zip
Merge pull request #382 from DmitriyEshenko/fix-pppoe-sesctrl
pppoe-server: T2391: Migrate single-session param to [common] section
Diffstat (limited to 'data')
-rw-r--r--data/templates/accel-ppp/pppoe.config.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/templates/accel-ppp/pppoe.config.tmpl b/data/templates/accel-ppp/pppoe.config.tmpl
index 99b3923b2..aece47a66 100644
--- a/data/templates/accel-ppp/pppoe.config.tmpl
+++ b/data/templates/accel-ppp/pppoe.config.tmpl
@@ -114,12 +114,14 @@ dae-server={{ radius_dynamic_author.server }}:{{ radius_dynamic_author.port }},{
{% endif -%}
{% endif %}
+{% if sesscrtl != 'disable' %}
+[common]
+single-session={{ sesscrtl }}
+{% endif %}
+
[ppp]
verbose=1
check-ip=1
-{% if not sesscrtl == 'disable' %}
-single-session={{sesscrtl}}
-{% endif -%}
{% if ppp_ccp %}
ccp=1
{% endif %}