Increase consistency of path escaping and support IPv6 addresses instead of hostnames

This commit is contained in:
Henri
2021-04-06 21:43:58 +02:00
parent f77a8a28fe
commit 874089117b
5 changed files with 21 additions and 20 deletions

View File

@@ -33,8 +33,8 @@
</li>
{{ range $k, $v := .Servers }}
<li class="nav-item">
<a class="nav-link{{ if eq $server $v }} active{{ end }}"
href="/{{ $option }}/{{ $v }}/{{ $target }}">{{ html $v }}</a>
<a class="nav-link{{ if eq $server $k }} active{{ end }}"
href="/{{ $option }}/{{ $k }}/{{ $target }}">{{ html $v }}</a>
</li>
{{ end }}
</ul>