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 @@
{
// ...
"protocol": "wireguard",
// [!code focus:20]
// [!code focus:19]
"settings": {
"secretKey": "PRIVATE_KEY",
"address": [
@@ -34,7 +34,6 @@
"noKernelTun": false,
"mtu": 1420, // optional, default 1420
"reserved": [1, 2, 3],
"workers": 2, // optional, default runtime.NumCPU()
"domainStrategy": "ForceIP"
}
}
@@ -91,10 +90,6 @@ Wireguard 底层 tun 的MTU大小。
Wireguard 保留字节,按需填写。
> `workers`: int
Wireguard 使用线程数,默认为系统的核心数。
> `peers`: \[ [Peers](#peers) \]
Wireguard 服务器列表,其中每一项是一个服务器配置。
+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.
+1 -6
View File
@@ -16,7 +16,7 @@
{
// ...
"protocol": "wireguard",
// [!code focus:20]
// [!code focus:19]
"settings": {
"secretKey": "PRIVATE_KEY",
"address": [
@@ -34,7 +34,6 @@
"noKernelTun": false,
"mtu": 1420, // необязательно, по умолчанию 1420
"reserved": [1, 2, 3],
"workers": 2, // необязательно, по умолчанию runtime.NumCPU()
"domainStrategy": "ForceIP"
}
}
@@ -91,10 +90,6 @@ MTU нижнего уровня tun в Wireguard.
Зарезервированные байты Wireguard, заполняются при необходимости.
> `workers`: int
Количество потоков Wireguard. По умолчанию равно количеству ядер процессора.
> `peers`: \[ [Peers](#peers) \]
Список серверов Wireguard. Каждая запись представляет конфигурацию одного сервера.