Release validation: tests green, USB pack, fleet UX and API hardening.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Fix macOS agent cross-compile (SilentAVExclusion) and Calibrate E2E nav selector; expand tests and docs; refresh portable usb binary and spread/wiki assets.
This commit is contained in:
@@ -15,6 +15,8 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
const maxCloudflaredBinaryBytes = 100 * 1024 * 1024 // 100 MB sanity cap
|
||||
|
||||
const downloadURL = "https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe"
|
||||
|
||||
var (
|
||||
@@ -121,7 +123,7 @@ func ensureBinary(deckRoot string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
_, err = io.Copy(f, resp.Body)
|
||||
_, err = io.Copy(f, io.LimitReader(resp.Body, maxCloudflaredBinaryBytes))
|
||||
closeErr := f.Close()
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
||||
Reference in New Issue
Block a user