WireGuard: Remove workers

https://github.com/XTLS/Xray-core/pull/6287
This commit is contained in:
Meow
2026-07-09 20:16:18 +08:00
parent 950d9faf13
commit 2c5d1320cb
3 changed files with 3 additions and 18 deletions
+1 -6
View File
@@ -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.