Repository navigation
من یک مشکل هنگام تسته relay #381
Description
Activity
@halloichnichtgut —
Relay timeout — Apps Script unresponsive+ HTTP 504 = Apps Script یا در دسترس نیست (یا کندتر از ۲۵ ثانیه پاسخ میده). دو بسته علل ممکن هست + هر کدوم workaround جداگانه داره:۱. Apps Script outbound throttle از Iran ISP (محتملترین در حال حاضر — #313)
از حدود ۱۲ ظهر ۲۶ آپریل، چندین کاربر در Iran گزارش دادن که Apps Script
UrlFetchApp.fetch()outbound throttled یا blocked شده. علائم: timeout روی همه requestها، بدون mhrv-rs هم direct curl timeout میگیره.Diagnostic: اجرای direct curl از داخل Iran بدون mhrv-rs:
curl -s -X POST 'https://script.google.com/macros/s/YOUR_DEPLOYMENT_ID/exec' \ -H 'Content-Type: application/json' \ -d '{"k":"YOUR_AUTH_KEY","u":"https://httpbin.org/get","m":"GET"}' \ --max-time 15
- اگه timeout/RST میگیره = همان #313. به آنجا منتقل بشید.
- اگه JSON
{"r":"...","s":200,...}میگیره = Apps Script کار میکنه. مشکل path mhrv-rs است. ادامه به سناریو ۲.
۲. Config issue در mhrv-rs
اگه curl direct کار میکنه ولی mhrv-rs timeout میده:
- Deployment public نیست — Deploy → Manage Deployments → Edit → Who has access: Anyone
- AUTH_KEY mismatch — مقدار
auth_keyدرconfig.jsonبا AUTH_KEY در Code.gs literally identical باشه (حتی فاصله ابتدا/انتها). #310 reply جزئیات google_ipreachable نیست — تست با openssl:اگهfor ip in 216.239.38.120 142.251.214.78 172.217.18.78 64.233.180.78 74.125.196.78; do echo -n "$ip: " timeout 5 openssl s_client -connect "$ip:443" -servername www.google.com \ < /dev/null 2>/dev/null \ | grep -E "subject=" | head -1 || echo "FAIL" done
216.239.38.120(default) FAIL میده ولی دیگری success میده، درconfig.json"google_ip"رو به اون IP success تغییر بدید.
۳. v1.8.0 آپدیت کنید (اگه نیستید)
نسخه v1.8.0 شامل:
- Random padding برای DPI evasion (App script Unresponsive ERROR #313/[Feature Request] Architecture enhancements for DPI evasion, Payload Entropy, and Active Probing Defense (Inspired by Xray-core/xhttp) #365)
- Auto-blacklist deployments که timeout زیاد میگیرن (feat(tunnel-client): blacklist deployments after sustained timeouts #319)
- Decoy HTML روی auth بد (active-probing defense)
اگه روی نسخه قدیمی هستید، احتمال موفقیت بالاتره با v1.8.0. دانلود از: https://t.me/mhrv_rs
نتیجه curl test direct + version mhrv-rs رو share کنید تا narrow-down کنیم. اگه curl timeout میده = #313، این issue رو duplicate میبندم. اگه curl کار میکنه ولی mhrv-rs نه = baz nگه میداریم + بیشتر دیپ میشیم.
[reply via Anthropic Claude | reviewed by @therealaleph]
log برنامه:
[ui] running test...
[ui] test result: fail
INFO fetch_ips_from_api disabled, using static fallback
ERROR Relay timeout — Apps Script unresponsive
ERROR test: FAIL (gateway error). Likely: wrong Apps Script ID, bad AUTH_KEY, quota hit, or Google edge unreachable. status=HTTP/1.1 504 Gateway Timeout
[ui] test result: fail
INFO fetch_ips_from_api disabled, using static fallback