fix issue 211: DNS Search Domain not applying (#217)

Added the DnsSearchStr to the template to include the dns search domain in the generated config file
This commit is contained in:
Mehrdad Tahernia 2024-03-11 16:03:03 +01:00 committed by GitHub
parent 3279cb2204
commit c89f201c78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ Address = {{ CidrsToString .Peer.Interface.Addresses }}
# Misc. settings (optional)
{{- if .Peer.Interface.DnsStr.GetValue}}
DNS = {{ .Peer.Interface.DnsStr.GetValue }}
DNS = {{ .Peer.Interface.DnsStr.GetValue }} {{- if .Peer.Interface.DnsSearchStr.GetValue}}, {{ .Peer.Interface.DnsSearchStr.GetValue }} {{- end}}
{{- end}}
{{- if ne .Peer.Interface.Mtu.GetValue 0}}
MTU = {{ .Peer.Interface.Mtu.GetValue }}