mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
Update documentation
This commit is contained in:
parent
33a57c85b3
commit
61e34f1cb2
@ -77,11 +77,11 @@ Both if empty.
|
|||||||
|
|
||||||
==Required==
|
==Required==
|
||||||
|
|
||||||
| Method | Password Format |
|
| Method | Password Format |
|
||||||
|---------------|-------------------------------------|
|
|---------------|-----------------------------------------|
|
||||||
| none | / |
|
| none | / |
|
||||||
| 2022 methods | `openssl rand -base64 <Key Length>` |
|
| 2022 methods | `sing-box generate psk -s <Key Length>` |
|
||||||
| other methods | any string |
|
| other methods | any string |
|
||||||
|
|
||||||
### Listen Fields
|
### Listen Fields
|
||||||
|
|
||||||
|
@ -77,8 +77,8 @@ See [Listen Fields](/configuration/shared/listen) for details.
|
|||||||
|
|
||||||
==必填==
|
==必填==
|
||||||
|
|
||||||
| 方法 | 密码格式 |
|
| 方法 | 密码格式 |
|
||||||
|---------------|-------------------------------|
|
|---------------|-----------------------------------|
|
||||||
| none | / |
|
| none | / |
|
||||||
| 2022 methods | `openssl rand -base64 <密钥长度>` |
|
| 2022 methods | `sing-box generate psk -s <密钥长度>` |
|
||||||
| other methods | 任意字符串 |
|
| other methods | 任意字符串 |
|
@ -319,7 +319,7 @@ Handshake server address and [Dial options](/configuration/shared/dial).
|
|||||||
|
|
||||||
==Required==
|
==Required==
|
||||||
|
|
||||||
Private key, generated by `./xray x25519`.
|
Private key, generated by `sing-box generate x25519`.
|
||||||
|
|
||||||
#### public_key
|
#### public_key
|
||||||
|
|
||||||
@ -327,7 +327,7 @@ Private key, generated by `./xray x25519`.
|
|||||||
|
|
||||||
==Required==
|
==Required==
|
||||||
|
|
||||||
Public key, generated by `./xray x25519`.
|
Public key, generated by `sing-box generate x25519`.
|
||||||
|
|
||||||
#### short_id
|
#### short_id
|
||||||
|
|
||||||
|
@ -315,7 +315,7 @@ MAC 密钥。
|
|||||||
|
|
||||||
==必填==
|
==必填==
|
||||||
|
|
||||||
私钥,由 `./xray x25519` 生成。
|
私钥,由 `sing-box generate x25519` 生成。
|
||||||
|
|
||||||
#### public_key
|
#### public_key
|
||||||
|
|
||||||
@ -323,7 +323,7 @@ MAC 密钥。
|
|||||||
|
|
||||||
==必填==
|
==必填==
|
||||||
|
|
||||||
公钥,由 `./xray x25519` 生成。
|
公钥,由 `sing-box generate x25519` 生成。
|
||||||
|
|
||||||
#### short_id
|
#### short_id
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user