v1.2.11: x.com URL truncation now fires for www.x.com (fix #64)

Single-bug release. Unblocks x.com browsing for users whose browsers
resolve to www.x.com rather than bare x.com — i.e. essentially
everyone using Firefox / Chrome / Safari.

Previous releases still advertised the URL-truncation fix as working
but it only matched exact Host: x.com, which never happens in real
traffic. v1.2.11 widens the matcher to x.com + *.x.com so www.x.com,
api.x.com, and any future x.com subdomain all get the shortened URL
through Apps Script's URL length cap.
This commit is contained in:
therealaleph
2026-04-24 10:01:46 +03:00
parent cb4cde1702
commit 259431b44f
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "mhrv-rs"
version = "1.2.10"
version = "1.2.11"
edition = "2021"
description = "Rust port of MasterHttpRelayVPN -- DPI bypass via Google Apps Script relay with domain fronting"
license = "MIT"
+2 -2
View File
@@ -14,8 +14,8 @@ android {
applicationId = "com.therealaleph.mhrv"
minSdk = 24 // Android 7.0 — covers 99%+ of live devices.
targetSdk = 34
versionCode = 130
versionName = "1.2.10"
versionCode = 131
versionName = "1.2.11"
// Ship all four mainstream Android ABIs:
// - arm64-v8a — 95%+ of real-world Android phones since 2019
+4
View File
@@ -0,0 +1,4 @@
<!-- see docs/changelog/v1.1.0.md for the file format: Persian, then `---`, then English. -->
• رفع x.com (issue #64): پچ URL truncation که در v1.2.1‬ اضافه شده بود فقط host == "x.com" رو مطابقت می‌داد، ولی مرورگرها واقعاً به ‫`www.x.com` و `api.x.com`‬ می‌رن. برای همین truncation هیچ‌وقت برای ترافیک واقعی کاربر اجرا نمی‌شد و ‫Apps Script‬ با خطای «بیش از حد مجاز: طول نشانی وب ‫URLFetch‬» جواب می‌داد. host matcher‬ گسترده شد به ‫`x.com` + هر subdomain` تا www.x.com / api.x.com و آینده همه rewrite بشن.
---
• x.com fix (issue #64): the URL-truncation patch added in v1.2.1 only matched exact host `x.com`, but browsers actually hit `www.x.com` (and `api.x.com` also serves GraphQL endpoints). The truncation never fired for real-world traffic and Apps Script kept rejecting with "URLFetch URL length exceeded." Host matcher now widened to `x.com || *.x.com`, catching every subdomain the URL pattern would apply to.