Update tinc/lixonet/tinc.conf.tmpl

This commit is contained in:
sump pump 2020-04-28 05:35:23 +00:00
parent 8824173602
commit 4c4786853b

View File

@ -41,7 +41,7 @@ DirectOnly = ${tinc_direct_only:-yes}
ConnectTo = {{.}} ConnectTo = {{.}}
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ range files "tinc/lixonet/hosts" }}{{ if ne . "${name}" }}{{ if ne . "server" }} {{ range files "tinc/lixonet/hosts" }}{{ if ne . "${name}" }}{{ if ne . "server" }}{{$contents:=file(.)}}{{if match "0\.0\.0\.0" "${contents}"}}
ConnectTo = {{.}} ConnectTo = {{.}}
{{ end }}{{ end }}{{ end }} {{ end }}{{ end }}{{ end }}
{{ end }} {{ end }}