Skip to content

v1.2.1 - Installer fix: checksum fallback for blocked networks

Choose a tag to compare

@TaJirax TaJirax released this 20 Aug 21:37
· 12 commits to main since this release

What's changed

Bug Fix: Go checksum — 3-level fallback for blocked networks

The previous fix (v1.2.0) added a fallback to the go.dev JSON index, but both URLs are on go.dev, which is blocked on some hosting providers and networks.

This release adds a third fallback using checksums bundled directly in this repository (scripts/go-checksums.txt), fetched from raw GitHub — which is accessible on virtually all networks.

Fallback chain in scripts/install.sh:

  1. https://go.dev/dl/go<ver>.linux-<arch>.tar.gz.sha256 — fast sidecar (works most of the time)
  2. https://go.dev/dl/?mode=json&include=all — JSON index (works when sidecar redirects to HTML)
  3. https://raw.githubusercontent.com/TaJirax/CottenRouter/<commit>/scripts/go-checksums.txtbundled checksums in this repo (works when go.dev is completely unreachable)

Security is unchanged: the sha256 is verified before the tarball is extracted in all cases.

Upgrading

curl -fsSL https://raw.githubusercontent.com/TaJirax/CottenRouter/main/scripts/install.sh | sudo bash

Full Changelog: v1.2.0...v1.2.1