Skip to content

Commit

Permalink
use lowercase for service hostnames
Browse files Browse the repository at this point in the history
Some applications seem sensitive to this. Most applications seem to
automatically lowercase, and some (e.g. ssh) will not match it up to the
uppercase form in /etc/hosts.

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
  • Loading branch information
vito committed Jul 18, 2023
1 parent ddee24b commit 74b9d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,7 @@ func hostHash(val digest.Digest) string {
if err != nil {
panic(err)
}
return b32(xxh3.Hash(b))
return strings.ToLower(b32(xxh3.Hash(b)))
}

func b32(n uint64) string {
Expand Down

0 comments on commit 74b9d33

Please sign in to comment.