mirror of
https://github.com/therealaleph/MasterHttpRelayVPN-RUST.git
synced 2026-05-18 23:54:48 +03:00
docs: update docs
This commit is contained in:
@@ -174,6 +174,30 @@ Then:
|
|||||||
|
|
||||||
`script_id` can also be a JSON array: `["id1", "id2", "id3"]`.
|
`script_id` can also be a JSON array: `["id1", "id2", "id3"]`.
|
||||||
|
|
||||||
|
#### scan-ips configuration (optional)
|
||||||
|
|
||||||
|
By default, the scan-ips subcommand uses a static array of IPs.
|
||||||
|
|
||||||
|
You can enable dynamic IP discovery by setting fetch_ips_from_api to true in config.json:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"fetch_ips_from_api": true,
|
||||||
|
"max_ips_to_scan": 100
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
When enabled:
|
||||||
|
|
||||||
|
- Fetches goog.json from Google’s public IP ranges API
|
||||||
|
- Extracts all CIDRs and expands them to individual IPs
|
||||||
|
- Prioritizes IPs from famous Google domains (google.com, youtube.com, etc.)
|
||||||
|
- Randomly selects up to max_ips_to_scan candidates (prioritized IPs first)
|
||||||
|
- Tests only the selected candidates for connectivity and frontend validation.
|
||||||
|
|
||||||
|
By using this options you may find ips witch are faster than static array that is provided as default but there is no guarantee that this ips would work.
|
||||||
|
|
||||||
|
|
||||||
### Step 5 — Point your client at the proxy
|
### Step 5 — Point your client at the proxy
|
||||||
|
|
||||||
The tool listens on **two** ports. Use whichever your client supports:
|
The tool listens on **two** ports. Use whichever your client supports:
|
||||||
@@ -437,6 +461,29 @@ Firefox cert store خودش را جدا دارد؛ installer تلاش میک
|
|||||||
./mhrv-rs --help
|
./mhrv-rs --help
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### پیکربندی scan-ips (اختیاری)
|
||||||
|
بهطور پیشفرض، دستور scan-ips از آرایهای ثابت از IPها استفاده میکند.
|
||||||
|
|
||||||
|
میتوانید کشف پویای IP را با تنظیم fetch_ips_from_api روی true در config.json فعال کنید:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"fetch_ips_from_api": true,
|
||||||
|
"max_ips_to_scan": 100
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
زمانی که فعال باشد:
|
||||||
|
|
||||||
|
- فایل goog.json را از API محدودههای عمومی IP گوگل دریافت میکند
|
||||||
|
تمام CIDRها را استخراج کرده و به IPهای جداگانه تبدیل میکند
|
||||||
|
- به IPهای دامنههای معروف گوگل (google.com، youtube.com و غیره) اولویت میدهد
|
||||||
|
بهصورت تصادفی تا max_ips_to_scan کاندید انتخاب میکند (ابتدا IPهای اولویتدار)
|
||||||
|
فقط کاندیدهای انتخابشده را برای اتصال و اعتبارسنجی frontend تست میکند.
|
||||||
|
|
||||||
|
با استفاده از این گزینهها ممکن است IPهایی پیدا کنید که سریعتر از آرایه ثابت پیشفرض هستند اما تضمینی وجود ندارد که این IPها کار کنند.
|
||||||
|
|
||||||
#### ۵. تنظیم proxy در کلاینت
|
#### ۵. تنظیم proxy در کلاینت
|
||||||
|
|
||||||
ابزار روی **دو** پورت گوش میدهد:
|
ابزار روی **دو** پورت گوش میدهد:
|
||||||
|
|||||||
Reference in New Issue
Block a user