fix newlines in template

This commit is contained in:
Christoph Haas 2020-12-17 13:47:46 +01:00
parent 793c2fc27e
commit 814f57d357

View File

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