diff options
Diffstat (limited to 'cmd/authzd/main.go')
| -rw-r--r-- | cmd/authzd/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
