mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-22 22:38:05 +03:00
@@ -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 服务器列表,其中每一项是一个服务器配置。
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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. Каждая запись представляет конфигурацию одного сервера.
|
||||
|
||||
Reference in New Issue
Block a user