mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-08 22:59:54 +03:00
@@ -16,7 +16,7 @@ Standard Wireguard protocol implementation.
|
||||
{
|
||||
// ...
|
||||
"protocol": "wireguard",
|
||||
// [!code focus:20]
|
||||
// [!code focus:19]
|
||||
"settings": {
|
||||
"secretKey": "PRIVATE_KEY",
|
||||
"address": [
|
||||
@@ -34,7 +34,6 @@ Standard Wireguard protocol implementation.
|
||||
"noKernelTun": false,
|
||||
"mtu": 1420, // optional, default 1420
|
||||
"reserved": [1, 2, 3],
|
||||
"workers": 2, // optional, default runtime.NumCPU()
|
||||
"domainStrategy": "ForceIP"
|
||||
}
|
||||
}
|
||||
@@ -91,10 +90,6 @@ The structure of a Wireguard packet is as follows:
|
||||
|
||||
Wireguard reserved bytes, fill as needed.
|
||||
|
||||
> `workers`: int
|
||||
|
||||
Number of threads used by Wireguard. Defaults to the number of system cores.
|
||||
|
||||
> `peers`: \[ [Peers](#peers) \]
|
||||
|
||||
List of Wireguard servers, where each item is a server configuration.
|
||||
|
||||
Reference in New Issue
Block a user