mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-05-02 11:00:40 -05:00
Add http timeout for license activation
This commit is contained in:
@@ -106,7 +106,7 @@ func doFetchActivation(ctx context.Context, licenseURL, licenseKey, hwid, versio
|
||||
rlog := slog.With("requestID", rid)
|
||||
rlog.DebugContext(ctx, "Sending license request", "URL", licenseURL)
|
||||
|
||||
client := &http.Client{}
|
||||
client := &http.Client{Timeout: 10 * time.Second}
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return nil, common.NewRetriableError(err)
|
||||
|
||||
Reference in New Issue
Block a user