From 9c54e9690a9babcd512fdad844251bb8f45e1691 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 2 Jul 2025 17:09:57 -0600 Subject: fix: check if an authzd host is provided --- cmd/authzd/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/authzd') diff --git a/cmd/authzd/main.go b/cmd/authzd/main.go index ff942e7..37d2cf5 100644 --- a/cmd/authzd/main.go +++ b/cmd/authzd/main.go @@ -49,6 +49,10 @@ func main() { } func credentialsFor(ctx context.Context, host string) credentials.TransportCredentials { + if host == "" { + return insecure.NewCredentials() + } + _, port, err := net.SplitHostPort(host) if err != nil { pls.LogError(ctx, err) -- cgit v1.2.3