Make blocky config a bit more stable by removing templating based on whami

This commit is contained in:
IamTheFij 2022-06-23 20:11:28 -07:00
parent 7760d3387e
commit b8b74e900b

View File

@ -51,14 +51,6 @@ customDNS:
{{- end -}} {{- end -}}
{{- with index . $last }}{{ .Address }}{{ end -}} {{- with index . $last }}{{ .Address }}{{ end -}}
{{- end }} {{- end }}
{{ with service "whoami" -}}
{{- $last := len . | subtract 1 -}}
{{- $services := . -}}
whoami: {{ range $i := loop $last -}}
{{- with index $services $i }}{{ .Address }},{{ end -}}
{{- end -}}
{{- with index . $last }}{{ .Address }}{{ end -}}
{{- end }}
# Other mappings # Other mappings
{{ keyOrDefault "blocky/mappings" "# None" | indent 4 }} {{ keyOrDefault "blocky/mappings" "# None" | indent 4 }}