aboutsummaryrefslogtreecommitdiff
path: root/app/cache.go
Commit message (Collapse)AuthorAgeFilesLines
* fix: harden HTTP transport, server timeouts and panic pathsChristian Cleberg2026-07-151-14/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Correctness and security findings surfaced by golangci-lint, plus two latent panics found alongside them. - router: http.ListenAndServe has no timeouts at all (gosec G114), so a slow client could hold a connection and its handler open indefinitely. Replace it with an explicit http.Server carrying read/write/idle timeouts. - httpclient: InstallDAThrottle asserted http.DefaultTransport was a *http.Transport and would panic outright if anything had already wrapped it -- which is precisely what that function does. Check the assertion and fall back to a fresh transport. Expose ProxiedTransport so a configured download-proxy can inherit the same throttle and timeouts instead of silently bypassing them. - cache: the Sys() assertion to *syscall.Stat_t is only valid on unix and would panic elsewhere; skip rotation instead. Indexing Headers["Content-Type"][0] panics when the header is absent; use Headers.Get. Cache files are written 0600 rather than 0700, as they are never executed. - cli, api: check error returns, and exit rather than nil-dereference a file handle that failed to open. SHA-1 and math/rand keep //nolint:gosec with reasons: they are cache-key hashes and random-artwork picks, not security primitives.
* fix: remove russian language throughoutChristian Cleberg2026-07-151-1/+1
|
* Add da.opnxng.com + lost-skunk.cc is now in Finlandlost+skunk2025-04-071-0/+0
|
* Переключатель кеша в озу, небольшие ↵lost+skunk2025-02-221-31/+45
| | | | улучшения ксс, фикс нсфв, фикс максимального размера кеша
* v1.3.2v1.3.2lost+skunk2024-09-231-4/+4
|
* отображение ошибокlost+skunk2024-09-041-0/+1
|
* instance list updatelost+skunk2024-09-021-14/+17
|
* user favouriteslost+skunk2024-08-141-16/+18
|
* темплейты в бинарнике и улучшенная ↵lost+skunk2024-08-131-0/+132
система кеша