mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-20 01:31:40 +03:00
Update wireguard.md reserved domainStrategy Explanation [ENG]
This commit is contained in:
parent
b13a3a55e1
commit
de0fa8d1a8
@ -24,7 +24,9 @@ Wireguard is a standard implementation of the Wireguard protocol.
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"mtu": 1420, // optional, default 1420
|
"mtu": 1420, // optional, default 1420
|
||||||
|
"reserved": [1, 2, 3],
|
||||||
"workers": 2 // optional, default runtime.NumCPU()
|
"workers": 2 // optional, default runtime.NumCPU()
|
||||||
|
"domainStrategy": "ForceIP" // Requires Xray-core v1.8.6 or higher
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -44,6 +46,12 @@ Wireguard will create a virtual network interface `tun` locally. Use one or more
|
|||||||
|
|
||||||
The fragment size of the underlying `tun` device in Wireguard.
|
The fragment size of the underlying `tun` device in Wireguard.
|
||||||
|
|
||||||
|
> `reserved` \[ number \]
|
||||||
|
|
||||||
|
Wireguard Reserved Bytes.<br>
|
||||||
|
For example, when connecting to warp via wireguard, some IPs in Hong Kong and Los Angeles need to have a reserved value in order to connect successfully due to cloudflare limitations.<br>
|
||||||
|
The value of reserved can be obtained using third-party tools such as [warp-reg](https://github.com/badafans/warp-reg)、[warp-reg.sh](https://github.com/chise0713/warp-reg.sh)
|
||||||
|
|
||||||
> `workers`: int
|
> `workers`: int
|
||||||
|
|
||||||
The number of threads used by Wireguard.
|
The number of threads used by Wireguard.
|
||||||
@ -52,6 +60,12 @@ The number of threads used by Wireguard.
|
|||||||
|
|
||||||
A list of Wireguard servers, where each item is a server configuration.
|
A list of Wireguard servers, where each item is a server configuration.
|
||||||
|
|
||||||
|
> `domainStrategy`: "ForceIPv6v4" | "ForceIPv6" | "ForceIPv4v6" | "ForceIPv4" | "ForceIP"
|
||||||
|
|
||||||
|
Requires Xray-core v1.8.6 or higher.<br>
|
||||||
|
The default value is `"ForceIP"` when left blank.<br>
|
||||||
|
When the incoming request is for a domain name, regardless of whether `domainStrategy` is left empty (or if `domainStrategy` is not written), use the [built-in DNS server](./dns.md) to get an IP (if the DNS part is not written in the configuration, system DNS is used), and this IP is used to send the connection via wireguard.
|
||||||
|
|
||||||
### Peers
|
### Peers
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user