mirror of
https://github.com/h44z/wg-portal.git
synced 2025-04-19 08:55:12 +00:00
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:
parent
3279cb2204
commit
c89f201c78
@ -25,7 +25,7 @@ Address = {{ CidrsToString .Peer.Interface.Addresses }}
|
|||||||
|
|
||||||
# Misc. settings (optional)
|
# Misc. settings (optional)
|
||||||
{{- if .Peer.Interface.DnsStr.GetValue}}
|
{{- 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}}
|
{{- end}}
|
||||||
{{- if ne .Peer.Interface.Mtu.GetValue 0}}
|
{{- if ne .Peer.Interface.Mtu.GetValue 0}}
|
||||||
MTU = {{ .Peer.Interface.Mtu.GetValue }}
|
MTU = {{ .Peer.Interface.Mtu.GetValue }}
|
||||||
@ -62,4 +62,4 @@ PresharedKey = {{ .Peer.PresharedKey }}
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
{{- if and (ne .Peer.PersistentKeepalive.GetValue 0) (eq .Peer.Interface.Type "client")}}
|
{{- if and (ne .Peer.PersistentKeepalive.GetValue 0) (eq .Peer.Interface.Type "client")}}
|
||||||
PersistentKeepalive = {{ .Peer.PersistentKeepalive.GetValue }}
|
PersistentKeepalive = {{ .Peer.PersistentKeepalive.GetValue }}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user