Update tinc/lixonet/tinc.conf.tmpl

This commit is contained in:
sump pump 2020-04-28 05:41:22 +00:00
parent 4bb990201e
commit 511ee9b397

View File

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