[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-121":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},121,"mhr-cfw-go","ThisIsDara\u002Fmhr-cfw-go","ThisIsDara","A local proxy that runs on your machine and forwards traffic through Google.","",null,"Go",511,54,3,8,0,5,145,9.22,false,"master",true,[24,25,26,27,28,29],"domain-fronting","dpi-bypass","http","proxy","sni","vpn","2026-06-12 02:00:08","# [MHR-CFW](https:\u002F\u002Fgithub.com\u002Fdenuitt1\u002Fmhr-cfw) Rewritten in Go with YouTube Support Fix and Speed Improvements\n[![GitHub](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGitHub-ThisIsDara-blue?logo=github)](https:\u002F\u002Fgithub.com\u002FThisIsDara\u002Fmhr-cfw-go)\n\n**[فارسی](README_FA.md)**\n\n\n\u003Cimg width=\"654\" height=\"362\" alt=\"image\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fbdf8ffd8-f1cd-47b4-87fd-5bc6e2ce1937\" \u002F>\n\n\n## 🚀 Improvements Over Python Version\n\n\n ## **✅ 1.  YouTube Support Fixed**\n- Proper CORS handling — Added preflight OPTIONS handling and CORS header injection for cross-origin requests\n- Content-Encoding fix — Better decoding for brotli\u002Fgzip responses\n- Range request support — Video streaming needs proper Range header handling\n## **✅ 2. Speed Improvements**\n- HTTP\u002F2 transport — Uses HTTP\u002F2 instead of HTTP\u002F1.1 (faster multiplexing)\n- Connection pooling — Reuses TLS connections instead of creating new ones\n- Request coalescing — Multiple GET requests for same URL share one relay call\n- Response caching — LRU cache with proper TTL for static assets\n## **✅ 3. Security**\n- RSA 4096-bit keys — Upgraded from 2048-bit for MITM certificates\n## **✅ 4. Reliability**\n- Proper signal handling — Clean shutdown on Ctrl+C\n- Graceful error handling — Better error responses\n## **✅ 5. Code Quality**\n- Go rewrite — Static typing, better memory management\n- No external dependencies — Uses standard library where possible\n\n\n\n\n\n---\n\n## How It Works\n\n\nThe program runs on your PC and sends your requests through Google's infrastructure. Network filters see ordinary Google traffic and allow it through. Meanwhile, Google's free Apps Script fetches the actual website you wanted.\n\n---\n\n## Quick Start\n\n ## 📦 Requirements:\n - [Go 1.22+](https:\u002F\u002Fgo.dev\u002Fdl\u002F)\n\n **💡 Tip:** If you have trouble downloading Go dependencies, use the Runflare Iranian mirror:\n```bash\nGOPROXY=https:\u002F\u002Fmirror-go.runflare.com go mod download\n```\n\n### 1 - Clone and Build\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FThisIsDara\u002Fmhr-cfw-go.git\ncd mhr-cfw-go\n```\n\nOr download the latest release from [ 📥 GitHub Releases](https:\u002F\u002Fgithub.com\u002FThisIsDara\u002Fmhr-cfw-go\u002Freleases)\n\n### 2 - Build\n\n**Windows:** Double-click `build.bat` or run:\n\n```powershell\n.\\build.bat\n```\n\n**Linux\u002FMac:** Make the script executable and run:\n\n```bash\nchmod +x build.sh\n.\u002Fbuild.sh\n```\n\nThis will build the executable (`mhr-cfw-go.exe` on Windows, `mhr-cfw-go` on Linux\u002FMac).\n\n### 3 - Configure\n\nEdit `config.json` with your settings or ideally run `Setup Wizard` in the TUI:\n\n```json\n{\n  \"auth_key\": \"your-secret-password-here\",\n  \"script_id\": \"YOUR_DEPLOYMENT_ID\"\n}\n```\n\n### 4 - Run\n\n**Windows:** Double-click `mhr-cfw-go.exe` or run:\n\n```powershell\n.\\mhr-cfw-go.exe\n```\n\n**Linux\u002FMac:** Run:\n\n```bash\n.\u002Fmhr-cfw-go\n```\n\nThe app opens an interactive menu. Select **1) Start proxy** to begin.\n\n---\n\n### 5 - Install CA Certificate (for HTTPS interception)\n\nRun the app, then select **3) Install CA certificate** from the menu.\n\nThis installs the local Certificate Authority so the proxy can intercept HTTPS traffic.\n\n---\n\n## 🐧 Linux \u002F 🍎 macOS \u002F 📱 Termux Guide\n\n### Linux\u002FmacOS\n\n```bash\n# Clone\ngit clone https:\u002F\u002Fgithub.com\u002FThisIsDara\u002Fmhr-cfw-go.git\ncd mhr-cfw-go\n\n# Build\nchmod +x build.sh\n.\u002Fbuild.sh\n\n# Run\n.\u002Fmhr-cfw-go\n```\n\nOr manually:\n\n```bash\nGOOS=linux go build -ldflags \"-s -w\" -o mhr-cfw-go .\u002Fcmd\u002Fmhr-cfw\n.\u002Fmhr-cfw-go\n```\n\n### Termux (Android)\n\n```bash\n# Install Go and Git\npkg update -y\npkg install -y golang git\n\n# Clone\ngit clone https:\u002F\u002Fgithub.com\u002FThisIsDara\u002Fmhr-cfw-go.git\ncd mhr-cfw-go\n\n# Build\nchmod +x build.sh\n.\u002Fbuild.sh\n\n# Run\n.\u002Fmhr-cfw-go\n```\n\n### Stopping\n\nPress `Ctrl+C` to stop the proxy.\n\n---\n\n# 🛠️ How to Setup\n\n1. Open [mhr-cfw README File](https:\u002F\u002Fgithub.com\u002Fdenuitt1\u002Fmhr-cfw\u002Fblob\u002Fmain\u002FREADME.md#how-to-use) provided by [denuitt1](https:\u002F\u002Fgithub.com\u002Fdenuitt1)\n and follow the steps 1 to 3 until you have the Deployment ID\n\n---\n## Building from Source\n\nRequirements:\n- [Go 1.22+](https:\u002F\u002Fgo.dev\u002Fdl\u002F)\n\n```bash\ngo build -ldflags \"-s -w\" -o mhr-cfw-go.exe .\u002Fcmd\u002Fmhr-cfw\n```\n\n---\n\n## WIP...\n### `` 📊 Statistics ``\n- Request counter — Total requests served\n- Bandwidth usage — Bytes sent\u002Freceived\n### `` 🖥️ Monitoring ``\n- Connection status\n### `` ✏️ UX ``\n- Profile switching — Different config profiles\n- Export\u002FImport config — Backup settings\n---\n\n## Command Line Options\n\n| Option | Description |\n| --- | --- |\n| `--no-menu` | Run without TUI menu |\n| `--port` | Override proxy port |\n| `--host` | Override listen host |\n| `--socks5-port` | Override SOCKS5 port |\n| `--disable-socks5` | Disable SOCKS5 proxy |\n| `--log-level` | Set log level (DEBUG, INFO, WARN, ERROR) |\n| `--install-cert` | Install CA certificate |\n| `--uninstall-cert` | Remove CA certificate |\n| `--scan` | Scan Google IPs |\n| `--setup` | Run setup wizard |\n| `--version` | Show version |\n\n#### Disclaimer\n\n- **Google services compliance:** If you use Google Apps Script or other Google services with this project, you are responsible for complying with Google's Terms of Service, acceptable use rules, quotas, and platform policies. Misuse may lead to suspension or termination of your Google account or deployments.\n---\n\n## Original Projects\n### Based on [mhr-cfw](https:\u002F\u002Fgithub.com\u002Fdenuitt1\u002Fmhr-cfw), The Python implementation this project was rewritten from.\n\n\n\n## License\n\nMIT\n","这是一个运行在本地机器上的代理程序，通过Google的基础设施转发流量。核心功能包括修复了YouTube支持问题、提升了速度（如使用HTTP\u002F2传输协议和连接池）、增强了安全性（采用4096位RSA密钥）以及提高了代码质量和可靠性。技术上，该项目利用Go语言重写，相比Python版本提供了更好的内存管理和静态类型检查，并且尽量减少对外部依赖。适合需要绕过网络审查或访问受限内容的场景下使用，尤其是对视频流媒体服务有需求的用户。",2,"2026-06-11 02:30:58","CREATED_QUERY"]