fix newlines in template

This commit is contained in:
Christoph Haas 2020-12-17 13:47:46 +01:00
parent 793c2fc27e
commit 814f57d357
1 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ PrivateKey = {{ .Client.PrivateKey }}
{{if .Server.DNSStr -}}
DNS = {{ .Server.DNSStr }}
{{- end}}
{{- if ne .Server.Mtu 0 -}}
{{- if ne .Server.Mtu 0}}
MTU = {{.Server.Mtu}}
{{- end}}
@ -31,9 +31,9 @@ Address = {{ . }}
{{- end}}
ListenPort = {{ .Server.ListenPort }}
PrivateKey = {{ .Server.PrivateKey }}
{{- if ne .Server.Mtu 0 -}}
{{- if ne .Server.Mtu 0}}
MTU = {{.Server.Mtu}}
{{- end -}}
{{- end}}
PreUp = {{ .Server.PreUp }}
PostUp = {{ .Server.PostUp }}
PreDown = {{ .Server.PreDown }}
@ -44,9 +44,9 @@ PostDown = {{ .Server.PostDown }}
# {{.Identifier}} / {{.Email}} / Updated: {{.UpdatedAt}} / Created: {{.CreatedAt}}
[Peer]
PublicKey = {{ .PublicKey }}
{{- if .PresharedKey -}}
{{- if .PresharedKey}}
PresharedKey = {{ .PresharedKey }}
{{- end -}}
{{- end}}
AllowedIPs = {{ StringsJoin .IPs ", " }}
{{- end}}
{{end}}`