Update reality shortID requirement

pull/558/head
风扇滑翔翼 2024-08-07 17:36:08 +08:00 committed by GitHub
parent bd5c009e94
commit c56415e933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -395,7 +395,7 @@ CipherSuites 用于配置受支持的密码套件列表, 每个套件名称之
必填,客户端可用的 `shortId` 列表,可用于区分不同的客户端。
0 到 f长度为 2 的倍数,长度上限为 16。
格式要求见 `shortId`
若包含空值,客户端 `shortId` 可为空。
@ -417,9 +417,11 @@ CipherSuites 用于配置受支持的密码套件列表, 每个套件名称之
服务端 shortIds 之一。
0 到 f长度为 2 的倍数,长度上限为 16。
长度为 8 个字节,即 16 个 0~f 的数字字母可以小于16个核心将会自动在后面补0, 但位数必须是**偶数** (因为一个字节有2位16进制数)
若服务端的 `shordIDs` 包含空值,客户端可为空。
`aa1234` 会被自动补全为 `aa12340000000000`, 但是`aaa1234` 则会导致错误。
0也是偶数所以若服务端的 `shordIDs` 包含空值 `""` ,客户端也可为空。
> `publicKey` : string