summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/ntp/ntp.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ntp/ntp.conf.tmpl b/data/templates/ntp/ntp.conf.tmpl
index 1c51929fd..6ef0c0f2c 100644
--- a/data/templates/ntp/ntp.conf.tmpl
+++ b/data/templates/ntp/ntp.conf.tmpl
@@ -19,7 +19,7 @@ restrict -6 ::1
{% set options = options + 'noselect ' if server[srv].noselect is defined else '' %}
{% set options = options + 'preempt ' if server[srv].preempt is defined else '' %}
{% set options = options + 'prefer ' if server[srv].prefer is defined else '' %}
-server {{ srv }} iburst {{ options }}
+server {{ srv | replace('_', '-') }} iburst {{ options }}
{% endfor %}
{% endif %}