Skip to content

Commit 28a2768

Browse files
author
Tanner Jones
committed
Merge branch 'feature/insecure-flag' of https://github.com/tannerjones4075/falcoctl into feature/insecure-flag
2 parents a50792f + c1f13b0 commit 28a2768

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

internal/login/basic/basic.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,9 @@ func Login(ctx context.Context, client *auth.Client, credStore credentials.Store
6464
default:
6565
// For URLs without scheme, try HTTPS first, then fall back to HTTP if insecure is enabled
6666
r, err = registry.NewRegistry(reg, registry.WithClient(client), registry.WithPlainHTTP(false))
67-
if err == nil {
68-
err = r.CheckConnection(ctx)
69-
if err != nil && insecure {
70-
// If HTTPS failed and insecure is enabled, try HTTP
71-
r, err = registry.NewRegistry(reg, registry.WithClient(client), registry.WithPlainHTTP(true))
72-
}
67+
if err != nil && insecure {
68+
// If HTTPS failed and insecure is enabled, try HTTP
69+
r, err = registry.NewRegistry(reg, registry.WithClient(client), registry.WithPlainHTTP(true))
7370
}
7471
}
7572

0 commit comments

Comments
 (0)