Skip to content

Commit f0c8d67

Browse files
committed
fix: use 127.0.0.1 rather than localhost for OAuth2
1 parent 9a6af5e commit f0c8d67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/cloudx/client/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (h *CommandHelper) oAuth2DanceWithServer(ctx context.Context, client *oauth
180180
serverErr = make(chan error)
181181
serverToken = make(chan *oauth2.Token)
182182
)
183-
l, err := net.Listen("tcp", "localhost:0")
183+
l, err := net.Listen("tcp", "127.0.0.1:0")
184184
if err != nil {
185185
return nil, fmt.Errorf("failed to allocate port for OAuth2 callback handler, try again later: %w", err)
186186
}

0 commit comments

Comments
 (0)