Skip to content

Commit 50fc324

Browse files
OfficialKatanaRPRX
authored andcommitted
REALITY config: Fix client's shortId length check (#5738)
1 parent ec732b0 commit 50fc324

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

infra/conf/transport_internet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
940940
if len(c.ShortIds) != 0 {
941941
return nil, errors.New(`non-empty "shortIds", please use "shortId" instead`)
942942
}
943-
if len(c.ShortIds) > 16 {
943+
if len(c.ShortId) > 16 {
944944
return nil, errors.New(`too long "shortId": `, c.ShortId)
945945
}
946946
config.ShortId = make([]byte, 8)

0 commit comments

Comments
 (0)