Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Rules for anyone, human or automated, changing this repository.

## Build and test

- Go 1.27.2 or newer (see `go.mod`).
- Go 1.27.3 or newer (see `go.mod`).
- `make check` runs `gofmt` verification, `go vet`, `go test ./...` and
`go test -race ./...`. CI also runs `staticcheck` and `govulncheck`.
- Tests are hermetic: they use an in-memory Redis and synthetic GeoIP data and
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Base images are pinned by multi-arch index digest; keep the tag for
# readability and bump tag and digest together
# (`docker buildx imagetools inspect <image:tag>`).
FROM golang:1.27.2-alpine@sha256:f92b6ef800e499660581efdabdf25d9d817a9d124eaf900924f0504e7e27e12d AS build
FROM golang:1.27.3-alpine@sha256:d200d2dd76b03a99b52651fd1325aff7dcd35422c35c01bac56571b0507f3deb AS build

# Optional module-proxy override for restricted networks:
# docker build --build-arg GOPROXY=https://goproxy.cn,direct .
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Crawlora-org/FreeProxyAPI

go 1.27.2
go 1.27.3

require (
github.com/alicebob/miniredis/v2 v2.40.0
Expand Down
3 changes: 3 additions & 0 deletions internal/probe/tester_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ func TestRunProbeEchoThroughHTTPProxy(t *testing.T) {
requests := 0
var seenNonce string
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// The transport writes request bytes asynchronously. Keep the response
// behind that write so the traffic counter has a deterministic snapshot.
time.Sleep(10 * time.Millisecond)
requests++
seenNonce = r.URL.Query().Get(EchoNonceParam)
w.Header().Set("Content-Type", "application/json")
Expand Down
Loading