fix: use host with potential port for instance context (#7022)

This commit is contained in:
Livio Spring
2023-12-06 18:53:41 +02:00
committed by GitHub
parent a87f54b328
commit 6f3afb810d
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ func hostFromOrigin(ctx context.Context) (host string, err error) {
if err != nil {
return "", err
}
host = u.Hostname()
host = u.Host
if host == "" {
err = errors.New("empty host")
}