Skip to content

v1.26.2 — Go 1.26.5 + utls v1.8.2

Latest

Choose a tag to compare

@dteh dteh released this 22 Jul 22:13

Upstream Go: go1.26.5
utls: v1.8.2
go.mod directive: go 1.26.0
Supported Go versions: 1.26.0 – 1.26.5

⚠️ go get @latest resolves to v1.27.0, not this release. A mis-numbered v1.27.0 tag (upstream is still go1.26.x) already exists and outranks v1.26.2 in semver, so the module proxy serves it as @latest. v1.26.2 is the recommended build — it is a strict superset of v1.27.0. To use it, pin explicitly:

go get github.com/dteh/dhttp@v1.26.2

Changes since v1.26.1

  • Upgrade to go1.26.5. Upstream's net/http source is byte-identical between go1.26.3 and go1.26.5 (this release's changes were confined to internal/goroot, an atomic assembly file, and GC scan), so the module source is unchanged apart from the fix below.
  • Fix a broken go build -race ./.... Two //go:linkname directives in the vendored internal/race package (ReadObjectPC, WriteObjectPC) referred to function declarations that were already commented out in the fork, which the compiler rejects. The orphaned directives are now commented out too. This bug predated the upgrade.

Also included (debuted in v1.27.0)

  • Configurable HTTP/2 client fingerprint via Transport.HTTP2Settings — control the ordered SETTINGS list and the initial connection-level WINDOW_UPDATE (the "Akamai" H2 fingerprint) to match a specific browser, e.g. Chrome:
    &http.HTTP2Settings{
        Settings:       []http.HTTP2Setting{{1, 65536}, {2, 0}, {4, 6291456}, {6, 262144}},
        ConnectionFlow: 15663105,
    }
    Together with ClientHelloSettings (JA3/JA4) and PHeaderOrderKey (pseudo-header order), this covers the fields Cloudflare/Akamai fingerprint on. When nil, Go's default settings are sent (unchanged behavior).
  • Patch-regeneration fix: the v1.27.0 HTTP2Settings feature had been committed by editing the generated files directly without updating patches/0001-dhttp-combined.patch, so a scripts/build.sh run would have silently reverted it. The change is now folded into the combined patch, and the tree reproduces byte-for-byte.

Fingerprint

utls is unchanged at v1.8.2, so the JA3/Peetprint fingerprint is identical to v1.26.1 / v1.27.0.