Przeglądaj źródła

REALITY config: Fix client's `shortId` length check (#5738)

Katana 3 miesięcy temu
rodzic
commit
50fc324728
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      infra/conf/transport_internet.go

+ 1 - 1
infra/conf/transport_internet.go

@@ -940,7 +940,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
 		if len(c.ShortIds) != 0 {
 			return nil, errors.New(`non-empty "shortIds", please use "shortId" instead`)
 		}
-		if len(c.ShortIds) > 16 {
+		if len(c.ShortId) > 16 {
 			return nil, errors.New(`too long "shortId": `, c.ShortId)
 		}
 		config.ShortId = make([]byte, 8)